Does PyDev automatically compile code?

Rick Giuly
2008-11-21
2013-03-15
  • Rick Giuly
    Rick Giuly
    2008-11-21

    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

     
    • Fabio Zadrozny
      Fabio Zadrozny
      2008-11-21

      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