dunder-docs (was Python is DOOMED! Again!)
Gregory Ewing
greg.ewing at canterbury.ac.nz
Tue Feb 3 16:12:59 EST 2015
More information about the Python-list mailing list
Tue Feb 3 16:12:59 EST 2015
- Previous message (by thread): dunder-docs (was Python is DOOMED! Again!)
- Next message (by thread): dunder-docs (was Python is DOOMED! Again!)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Marko Rauhamaa wrote: > For (almost) all practical purposes, that is the Python way as well. If > object instantiation (conceptually) copied the class's methods into the > object's dict, you'd get the semantics I'm looking for. If things worked the way you want, it would be impossible to store a function in an instance attribute and get it out again *without* it being treated as a method and getting 'self' added to its arguments. That would be a considerable nuisance when dealing with callbacks and the like. -- Greg
- Previous message (by thread): dunder-docs (was Python is DOOMED! Again!)
- Next message (by thread): dunder-docs (was Python is DOOMED! Again!)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list