Does PyDev automatically compile code?

Rick Giuly
  • Rick Giuly
    Rick Giuly

    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?



    • Fabio Zadrozny
      Fabio Zadrozny

      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,