Global variables within classes.

Donn Ingle donn.ingle at gmail.com
Fri Nov 9 18:06:28 EST 2007


> I guess you mean "instances", not "classes".
Yes.
 
> Err...Perhaps a dumb question, but what about passing the "common
> objects" to initializers ?
> s = Stack()
> c = Canvas(s)
> t = Thing(s)

Okay, I see where you're going. It's better than what I have at the moment.
Thanks.

\d





More information about the Python-list mailing list