Ron Adam wrote:

> Also,
> 
> In your example 'q' is assigned the value 2, but as soon as the method 
> 'y' exits, it is lost.  To keep it around you want to assign it to self.y.

Ooops,  That should say ...
    "To keep it around you want to assign it to self.q."   <---self.q

Cheers,
Ron
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to