Something like PEP-0304 - suppress *.pyc generation
Hello, im looking for something like PEP-0304 ( http://www.python.org/dev/peps/pep-0304/) I need something to suppress the generation of *.pyc files because i have very much different machines which call a python program at same time. the python program crashes at different places and on different machines - i think the problem are the *.pyc files of different machines which are generated at the same time. is pep-0304 implemented in a newer python version ( we use 2.4.4 ) or is there a work around or can someone implement pep-0304? thank you for your help! Viele Grüße Christian Doll
On Mon, 20 Apr 2009 04:54:15 pm christian.doll@basf.com wrote:
I need something to suppress the generation of *.pyc files because i have very much different machines which call a python program at same time.
This list is for development *of* Python, not development *with* Python. You would probably be better off on comp.lang.python or python-list@python.org. However, I believe that the normal way to prevent the generation of .pyc files is to remove write access to the directory where the .py files are. -- Steven D'Aprano
On Mon, Apr 20, 2009 at 12:25 PM, Steven D'Aprano
On Mon, 20 Apr 2009 04:54:15 pm christian.doll@basf.com wrote:
I need something to suppress the generation of *.pyc files because i have very much different machines which call a python program at same time.
This list is for development *of* Python, not development *with* Python. You would probably be better off on comp.lang.python or python-list@python.org.
However, I believe that the normal way to prevent the generation of .pyc files is to remove write access to the directory where the .py files are.
Checkout http://docs.python.org/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE Regards. -- İsmail DÖNMEZ
participants (3)
-
christian.doll@basf.com
-
İsmail Dönmez
-
Steven D'Aprano