packages, globals, and __builtin__

Laura Creighton lac at
Thu May 10 14:52:23 EDT 2001

I'm making a package, with one class per file name.  I want a global
variable to keep state in which I can access from any module.  So I
import __builtin__ and assign something to __builtin__.StateVariable.
This works great.  But I am feeling squeamish about this.  Should I be?


More information about the Python-list mailing list