Global variables within classes.

Donn Ingle donn.ingle at gmail.com
Sat Nov 10 00:06:28 CET 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