Re: [Python-Dev] Python byte-compiled and optimized code

2009-10-07 Thread Zooko O'Whielacronx
You might be interested in the new PYTHONDONTWRITEBYTECODE environment variable supported as of Python 2.6. I personally think it is a great improvement. :-) Regards, Zooko ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailm

Re: [Python-Dev] Python byte-compiled and optimized code

2009-10-07 Thread Terry Reedy
Fred Drake wrote: On Wed, Oct 7, 2009 at 10:34 AM, Swapnil Talekar wrote: 1) Is the byte-compiled .pyc file and optimized .pyo file platform-independent?(including python versions 3.x) Yes. To be clear, CPython's .pyc is platform independent for a particular x.y version, and should, I beli

Re: [Python-Dev] Python byte-compiled and optimized code

2009-10-07 Thread Antoine Pitrou
Fred Drake gmail.com> writes: > > 3) Is it possible to redirect the location of the generation of .pyc files > > to other than that of the corresponding .py files? > > I think some support for this has been developed, at least > experimentally, but I'm not sure if it's part of a stable release or

Re: [Python-Dev] Python byte-compiled and optimized code

2009-10-07 Thread Fred Drake
On Wed, Oct 7, 2009 at 10:34 AM, Swapnil Talekar wrote: > 1) Is the byte-compiled .pyc file and optimized .pyo file > platform-independent?(including python versions 3.x) Yes. > If yes, is it > guaranteed to stay that way in future? Yes. > 2) If the the generation of .pyc file fails (say, due

[Python-Dev] Python byte-compiled and optimized code

2009-10-07 Thread Swapnil Talekar
I am working on deploying Python on VxWorks platform as a part of project for my company. Accordingly, I would like to know couple of things from python's core-developers. Although I think I already know the answers for most of the questions, we need a confirmation from the community 1) Is the byte