understaning "self"

D'Arcy J.M. Cain darcy at druid.net
Thu Feb 21 14:30:39 EST 2008


On Thu, 21 Feb 2008 11:07:18 -0800 (PST)
7stud <bbxx789_05ss at yahoo.com> wrote:
> d = Dog()
> d.bark('Woof!')
> 
> and the call:
> 
> d.bark('Woof!')
> 
> would be transformed into:
> 
> d.bark(d, 'Woof!')

Actually, Dog.bark(d, 'Woof!')

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list