[Python-3000] Removing 'self' from method definitions (original) (raw)
Michael P. Soulier msoulier at digitaltorque.ca
Mon Apr 17 04:04:15 CEST 2006
- Previous message: [Python-3000] Removing 'self' from method definitions
- Next message: [Python-3000] auto-super()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 17/04/06 Greg Ewing said:
The other possible reason for using super() is so you don't have to write the name of the base class into all your inherited method calls. But that's a separate issue that would be better addressed by a different mechanism, rather than conflating the two in super().
Although you do have to put the current class name in the method calls, as super() requires it as the first argument. I never understood that. Why would I wish to use super(Bar) if I'm in class Foo? Cannot Foo be implied here?
Mike
-- Michael P. Soulier <msoulier at digitaltorque.ca> "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.python.org/pipermail/python-3000/attachments/20060416/97517bc1/attachment.pgp
- Previous message: [Python-3000] Removing 'self' from method definitions
- Next message: [Python-3000] auto-super()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]