Message5625

Author pjenvey
Recipients pjenvey, vgod
Date 2010-04-04.18:12:06
SpamBayes Score 8.542762e-05
Marked as misclassified No
Message-id <1270404727.17.0.902662742294.issue1584@psf.upfronthosting.co.za>
In-reply-to
Content
I assume module.py does an "import __main__" which was omitted from your paste.

If so then the 'module' module has imported __main__ as a top level object the first time. From then on it persists there in memory as a global. The second time you run the program it must reuse the same module object already loaded into memory.

reload() should work, depending on it's used, i.e.

import module
reload(module)
module.func()

Please reopen this bug if this doesn't work and you suspect it's jython's fault
History
Date User Action Args
2010-04-04 18:12:07pjenveysetmessageid: <1270404727.17.0.902662742294.issue1584@psf.upfronthosting.co.za>
2010-04-04 18:12:07pjenveysetrecipients: + pjenvey, vgod
2010-04-04 18:12:07pjenveylinkissue1584 messages
2010-04-04 18:12:06pjenveycreate