[Python-Dev] New Super PEP (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon Apr 30 03:03:16 CEST 2007
- Previous message: [Python-Dev] New Super PEP
- Next message: [Python-Dev] New Super PEP
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
skip at pobox.com wrote:
Since the language doesn't require that a subclassed method take the same parameters as the base class method, you can't assume that it does.
The argument is that in the special case of a cooperative super call, it doesn't make sense for the parameter list to be different, because you don't know which method you're calling, so the signature of all methods along the super chain has to be standardised.
-- Greg
- Previous message: [Python-Dev] New Super PEP
- Next message: [Python-Dev] New Super PEP
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]