python Programming Glossary: self.__keytransform__
Python: How to “perfectly” override a dict http://stackoverflow.com/questions/3387691/python-how-to-perfectly-override-a-dict def __getitem__ self key return dict.__getitem__ self self.__keytransform__ key def __setitem__ self key value return dict.__setitem__ self.. __setitem__ self key value return dict.__setitem__ self self.__keytransform__ key value def __delitem__ self key return dict.__delitem__ self.. def __delitem__ self key return dict.__delitem__ self self.__keytransform__ key def __contains__ self key return dict.__contains__ self..
|