Barry Warsaw <barry <at> python.org> writes:
> 
> 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.

Well, I don't think we need another transition... Just keep __file__ for the
source file, and add a __cache__ or __compiled__ attribute for the compiled 
file(s).

Since there might be several compiled files for a single source file (for
example, a .pyc along with a JITted native .so), __cache__ should probably be a
tuple rather than a string.

Regards

Antoine.


_______________________________________________
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