By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,456 Members | 1,742 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,456 IT Pros & Developers. It's quick & easy.

Newbie problem

P: 1
I'm writing Python for the first time, today.

Surprised to see that it doesn't check timestamps and recompile as needed. How do you get around this? Manually deleting the .pyc doesn't seem to remove the compiled version from memory.

Right now I'm exiting Python, deleting .pyc, reentering Python, import and run (between code edits) which is neither fun nor productive.
Dec 8 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 671
Python should update the pyc files if you change the source file. I do not know why it does not in your case. You should Google about this issue. Maybe someone here knows why the recompile isn't happening. If you don't find Google results or no one here responds, you should post on the Python mailing list about the no-recompile issue. Let them know you posted here, and Googled.
Dec 9 '07 #2

bvdet
Expert Mod 2.5K+
P: 2,851
Are you working in an IDE such as IDLE or PythonWin? Have you tried reload(module_name)?
Dec 9 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.