I noticed that .pyc files are not generated when I run my python scripts in PyDev. So, I am wondering: is PyDev compiling the files? -- or are they being run in an uncompiled state?
Regards,
-Rick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually, in Python there's no explicit compile step...
Python will create those on demand when you run a file (and .pyc files are generated as a cache for the bytecode for the next time Python runs it). I think it only does not generate the .pyc file for the main module when you run it (that's probably why you're not finding the .pyc files for the module you're running).
Best Regards,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all
Newbie question:
I noticed that .pyc files are not generated when I run my python scripts in PyDev. So, I am wondering: is PyDev compiling the files? -- or are they being run in an uncompiled state?
Regards,
-Rick
Actually, in Python there's no explicit compile step...
Python will create those on demand when you run a file (and .pyc files are generated as a cache for the bytecode for the next time Python runs it). I think it only does not generate the .pyc file for the main module when you run it (that's probably why you're not finding the .pyc files for the module you're running).
Best Regards,
Fabio