Re: Reg Python Byte code

2005-08-22 Thread Scott David Daniels
Warning: this post contains arcane knowledge. Steve Holden wrote: > praba kar wrote: >> Python 2.3 creates byte code with *.pyc >> extention. But Python 2.4 creates bytes code with >> *.pyo. Is there any difference between *.pyc >> and *.pyo?. >> > Yes. The .pyo files are optimized by remo

Re: Reg Python Byte code

2005-08-22 Thread Steve Holden
praba kar wrote: > Dear All, > > Python 2.3 creates byte code with *.pyc > extention. But Python 2.4 creates bytes code with > *.pyo. Is there any difference between *.pyc > and *.pyo?. > Yes. The .pyo files are optimized by removing certain features that aren't essential to execution (t

Re: Reg Python Byte code

2005-08-22 Thread Magnus Lycka
praba kar wrote: > Python 2.3 creates byte code with *.pyc > extention. But Python 2.4 creates bytes code with > *.pyo. Is there any difference between *.pyc > and *.pyo?. Since way back, ordinary Python bytecode uses .pyc, and optimized Python bytecode (python -O) uses .pyc. This has noth

Reg Python Byte code

2005-08-22 Thread praba kar
Dear All, Python 2.3 creates byte code with *.pyc extention. But Python 2.4 creates bytes code with *.pyo. Is there any difference between *.pyc and *.pyo?. Actually After python compiled a program then that program will run from the *.pyc byte code. If I delete that byte code what