object creation

Jerry Hill malaclypse2 at gmail.com
Fri Nov 14 20:29:16 EST 2008


On Fri, Nov 14, 2008 at 6:38 PM, Joe Strout <joe at strout.net> wrote:
> On Nov 14, 2008, at 4:33 PM, Jerry Hill wrote:
>
>> Then add
>> def __init__(self):
>>  a = 0
>>  b = 0
>
> Doesn't that have to be "self.a" and "self.b"?

Yes, that should indeed have been self.a and self.b!  Sorry about that.

-- 
Jerry



More information about the Python-list mailing list