Barry Warsaw wrote:
> On Feb 03, 2010, at 11:31 PM, Nick Coghlan wrote:
> 
>> 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 :)
> 
> I agree, and it's clear that would be much more user friendly.  I've added a
> note to my working copy of the PEP and leave that as a possible design
> change.  I'm still not certain what the right mapping would be though.  Python
> version numbers don't seem quite right, but maybe they are a "good enough"
> solution.

If we ditch the -U option for 2.7, then we'll only have one magic number
per CPython version. I've been using "cpython-27" in my examples.

On the issue of __file__, I'd suggesting not being too hasty in
deprecating that in favour of __source__. While I can see a lot of value
in having it point to the source file more often with a different
attribute that points to the cached file, I don't see a lot of gain to
compensate for the pain of changing the name of __file__ itself.

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