[Mailman-Users] .py and .pyc files
mark at msapiro.net
Thu May 5 20:02:10 CEST 2011
>With further reading into Python, it appears that one of Python's features Is that it automatically recompiles .py files to .pyc files when needed, as soon as it triggers an import of the file, so there is nothing I need to do after changing the source and restarting mailman, it will just work.
>Is that correct?
Yes and no. As I indicated in my prior reply at
in your specific case the qrunners don't have permission to write the
.pyc so it can't be updated. This is not a problem in that Python will
always use the more recent .py, but there is innefficiency in that
since the .pyc can't be written, the .py will have to be compiled each
time it is imported.
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users