static object

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Wed Jan 3 17:46:20 EST 2007


That looks like some kind of singleton. Why don't you use a module
instead of a class?

Another solution is to define your data as class attributes.

Bye,
bearophile




More information about the Python-list mailing list