Python ghost compile

Diez B. Roggisch deets at
Mon Jul 9 19:09:03 CEST 2007

funtimes at schrieb:
> I split a large python (2.5.1) program into three modules. Let's call 
> them mainmod, submod1, and submod2. mainmod imports submod1 and submod2. 
> When I make changes to any of these modules, it is not reflected in the 
> compile.  Only if exit idle and re-run idle. I've removed the two 
> relevant .pyc files. It holds onto the first compile made after starting 
> idle. I've triple-checked the names I've given the modules, they're all 
> unique. Any clues?

Use reload. Or an external interpreter, to avoid side-effects.


More information about the Python-list mailing list