Why don't I get a .pyc file?

Richard van de Stadt stadt at cs.utwente.nl
Tue Sep 19 15:48:01 CEST 2000


Jeff Kunce wrote:

> As the others said, The .pyc is normally generated on *import* from a .py
> file.
> 
> *But*, if you don't have write permissions on the directory
> containing the .py file, the import will work but no .pyc will be created.
> 
> This situation can happen easily with python applications that are
> launched by a CGI script. The web user usually doesn't have write
> permission to the code directories, the .pyc's never get generated,
> and performance suffers.

Hmmm. That's a good one.

Are there numbers about how much, in general, the performance loss is if
.pyc files cannot be generated?

Richard.



More information about the Python-list mailing list