Python ghost compile

F

funtimes

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?
 
D

Diez B. Roggisch

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.

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top