Detecting corrupted .pyc files

Michael Hudson mwh at python.net
Tue Mar 19 10:49:01 EST 2002


Michael Teo <michaelteo at bigfoot.com> writes:

> Does the python interpreter has some mechanism for checking whether the .pyc 
> files are corrupt before running it ?

No.  Corrupt marshal data *usually* won't unmarshal, but there are no
real checks.

Cheers,
M.

-- 
 "Well, the old ones go Mmmmmbbbbzzzzttteeeeeep as they start up and
  the new ones go whupwhupwhupwhooopwhooooopwhooooooommmmmmmmmm."
                         -- Graham Reed explains subway engines on asr



More information about the Python-list mailing list