Problem in designing a global directory in python

Tian wangtianthu at gmail.com
Tue Mar 29 14:35:52 EST 2005


I googled about how to write singleton in python, but even if I use
Singleton, in which module's namespace should I keep the instance of
this singleton? suppose I have a singleton class definiton in
"utils.py", how should I import and where should I make instance and
initialize? Thanks!!




More information about the Python-list mailing list