Compiled Byte code

Cliff Wells clifford.wells at comcast.net
Wed Oct 13 10:03:09 EDT 2004


On Wed, 2004-10-13 at 19:19 +0530, Soumitri wrote:
> Hi,
> 
> Is there a dependency of version or platform for running a snippet of
> python compiled code? I have a .pyc (possibly created on a *nix box)
> that was created off ver 1.5.2 and returns a "Bad Magic Number in .pyc
> file" error when i run a box with XP and Python 2.3.

IIRC, I believe bytecode (pyc files), while mostly portable across
platforms (I've used the same pyc files on Linux and Windows) aren't
portable across major versions of Python.

-- 
Cliff Wells <clifford.wells at comcast.net>




More information about the Python-list mailing list