[Python-Dev] New Super PEP (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon Apr 30 02:58:40 CEST 2007
- Previous message: [Python-Dev] New Super PEP
- Next message: [Python-Dev] New Super PEP
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gustavo Carneiro wrote:
Erm. Excuse me, but are you saying this code is wrong?
class Rectangle: def init(self, width, height): self.width = width self.height = height class Square: def init(self, side): Rectangle.init(self, side, side)
The PEP is all about cooperative super calls, so it doesn't apply to this.
I'd still rather see syntactic support for ordinary inherited calls before cooperative ones, as cooperative ones are used much more rarely, in my experience.
-- Greg
- Previous message: [Python-Dev] New Super PEP
- Next message: [Python-Dev] New Super PEP
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]