[Python-Dev] Identifying magic prefix on Python files?

Eric S. Raymond esr@thyrsus.com
Sun, 4 Feb 2001 13:20:03 -0500


Python's .pyc files don't have a magic prefix that the file(1) utility
can recognize.  Would anyone object if I fixed this?  A trivial pair of
hacks to the compiler and interpreter would do it.  Backward compatibility
would be easily arranged.

Embedding the Python version number in the prefix might enable some
useful behavior down the road.
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

The end move in politics is always to pick up a gun.
	-- R. Buckminster Fuller