object creation

Joe Strout joe at strout.net
Fri Nov 14 18:38:15 EST 2008


On Nov 14, 2008, at 4:33 PM, Jerry Hill wrote:

> Then add
> def __init__(self):
>  a = 0
>  b = 0
>
> to your box class to make a and b instance variables.

Doesn't that have to be "self.a" and "self.b"?

Best,
- Joe




More information about the Python-list mailing list