Disabling creation of .pyc files?

Stefan Schwarzer s.schwarzer at ndh.net
Thu Feb 14 15:41:12 EST 2002


Hello Dominic

Dominic Sacré wrote:
> I'm writing a C++ program which embeds Python, and I'm a bit annoyed by the
> fact that for every .py file I'm importing, Python automatically creates a
> corresponding .pyc file, which persists after my program exits.
> 
> Is there a way to disable that feature?

There was a thread on this recently:
http://groups.google.com/groups?hl=de&frame=right&th=5a6c36264f7b6d07&seekm=mailman.1011966458.9451.python-list%40python.org#link1

Stefan



More information about the Python-list mailing list