Magic Numbers
Oleg Broytmann
phd at phd.pp.ru
Wed May 22 09:52:54 EDT 2002
On Wed, May 22, 2002 at 08:48:00AM -0500, Lindstrom Greg - glinds wrote:
> I have recently switched from Python 2.2 to 2.1 (for CORBA reasons) on
[skip]
> ImportError: Bad magic number in C:\pyLib\Quitter.pyc
Magic number is a way for a program to recognize its data files. Python
uses magic numbers to recognize its byte-compiled files. Byte-compiled
files differ between versions, so after upgrading (even more after
downgrading) - delete and recreate all your *.pyc and *.pyo files.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list