On Jan 31, 2010, at 09:30 PM, Martin v. Löwis wrote:

>If a single pyc folder is used, I think an additional __source__
>attribute would be needed to indicate what source file time stamp had
>been checked (if any) to determine that the byte code file is current.

This is a good point.  __file__ is ambiguous so I think a reasonable thing to
add to the PEP is clear semantics for extracting the source file name and the
cached file name from the module object.

Python 3 uses the .py file for __file__ but I'd like to see a transition to
__source__ for that, with __cache__ for the location of the PVM, JVM, LLVM or
whatever compilation cache artifact file.

I've added a note to my working update of the PEP.

-Barry

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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