[Python-Dev] Should we do away with unbound methods in Py3k? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Nov 23 07:57:07 CET 2007
- Previous message: [Python-Dev] Should we do away with unbound methods in Py3k?
- Next message: [Python-Dev] Should we do away with unbound methods in Py3k?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip J. Eby wrote:
If you are configuring it per-class and accessing it per-instance, and reusing an existing function, you have to make it a staticmethod.
I don't understand that. Can you provide an example?
> some subclasser later finds that he wants access to > 'self'?
Then he overrides it with a normal method.
If that works, I don't see why making the default method a normal method wouldn't work also.
-- Greg
- Previous message: [Python-Dev] Should we do away with unbound methods in Py3k?
- Next message: [Python-Dev] Should we do away with unbound methods in Py3k?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]