where are the .pyc files?

Summercool Summercoolness at gmail.com
Sun Sep 16 21:23:20 EDT 2007


On Sep 16, 10:36 am, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
>
> The `*.pyc` files are usually only created when you import a module, not
> when a module is run directly.

how come a program that runs directly doesn't need to be optimized
into bytecode first?  Or... is it that the interpreter will just run
the program as it goes by, without ever generating a .pyc file?   So
what if you have a program that you only update every few weeks...
then you can ask a .pyc to be generated so that it runs faster every
time?





More information about the Python-list mailing list