Barry Warsaw wrote:
> Encoding the magic number in the file name under .pyr would I thought make the
> look up scheme more efficient since the import machinery can craft the file
> name directly.  I agree it's not very human friendly because nobody really
> knows which magic numbers are associated with which Python versions and flags.

Having a lookup dictionary from Python version + C API magic numbers to
the magic strings used in cache filenames in the import engine shouldn't
be too tricky. I'll admit it wasn't until the thread had already been
going for a while that I realised that, though :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to