where are the .pyc files?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Mon Sep 17 04:27:17 EDT 2007
On Mon, 17 Sep 2007 01:23:20 +0000, Summercool wrote:
> 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?
Programs need to be compiled to bytecode and they actually are. The
bytecode is just not dumped into a file but compiled at every run.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list