On 13-5-2012 23:27, Colin J. Williams wrote:
> Is there some way to ensure that a .pyc file is produced when executing a .py 
> file?
> 
> It seems that for small files the .pyc file is not produced.
> 
> Colin W.

All modules no matter how small produce a .pyc file *when they are imported*. 
If you
start a module directly though, no .pyc is produced. (Notice that Python 3 puts 
the pyc
files in a subdirectory.)

Why do you care anyway? Pyc files are an implementation detail.

Irmen
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to