Class Help

Ron Adam rrr at ronadam.com
Sat Oct 1 19:15:57 EDT 2005


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



More information about the Python-list mailing list