How do I use a pyc file created with an older version of Python?
Steve Purcell
stephen_purcell at yahoo.com
Mon Feb 12 12:38:08 EST 2001
Paul Moore wrote:
> Is it possible to convert a pyc from an older version of Python to a
> newer one, without the source? It seems like it should be possible, as
> a pyc is (I believe) just a magic number plus a marshalled code
> object.
Bad luck. The marshalled code objects aren't compatible from 1.5.2 to 2.0.
-Steve
--
Steve Purcell, Pythangelist
http://pyunit.sourceforge.net/
http://pyserv.sourceforge.net/
Available for consulting and training.
"Even snakes are afraid of snakes." -- Steven Wright
More information about the Python-list
mailing list