object creation

Joe Strout joe at strout.net
Sat Nov 15 00:38:15 CET 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