19 Nov
2007
19 Nov
'07
7:50 p.m.
On 11/19/07, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
Neil Toronto wrote:
class A(object): def method(self, x, y): self.x = x super.method(y)
Is that really how it's going to be? What if self isn't called 'self'?
I would rather see
super.method(self, y)
PEP 3135 specifies that the first argument of the method is used, regardless of name: http://www.python.org/dev/peps/pep-3135/#specification Luke