Creating classes and objects more than once?
Viktor Kerkez
alefnula at gmail.com
Fri Nov 28 04:24:01 EST 2008
On Nov 28, 9:35 am, Carl Banks <pavlovevide... at gmail.com> wrote:
> However, I'm not so sure the effect of os.chdir() on the import path
> is a good idea.
I'm not actually using os.chidir(), I just used it here to create a
clearer example.
Here is the simplest representation of the problem:
http://www.ninjashare.com/904415
$ cd singleton_test
$ export PYTHONPATH=.
$ python application/main_script.py
Creating class Singleton
Creating class MySingleton
Creating class Singleton
Creating class MySingleton
$
More information about the Python-list
mailing list