replace mothod for only one object but not for a class
Christian Heimes
lists at cheimes.de
Tue Oct 14 15:53:08 EDT 2008
More information about the Python-list mailing list
Tue Oct 14 15:53:08 EDT 2008
- Previous message (by thread): replace mothod for only one object but not for a class
- Next message (by thread): Win32api.MessageBox
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bruno Desthuilliers wrote: > If the class is a new-style one [1], it just requires invoking the > descriptor protocol by yourself to get a bound method, ie: Another note about new style classes: You can NOT overwrite most magic methods (__*__) on the instance. Most magic methods are only looked up on the class object. Christian
- Previous message (by thread): replace mothod for only one object but not for a class
- Next message (by thread): Win32api.MessageBox
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list