[Python-Dev] [compatibility-sig] making sure importlib.machinery.SourceLoader doesn't throw an exception if bytecode is not supported by a VM (original) (raw)

fwierzbicki at gmail.com fwierzbicki at gmail.com
Tue Jun 12 19:04:13 CEST 2012


On Tue, Jun 12, 2012 at 9:38 AM, Alex Gaynor <alex.gaynor at gmail.com> wrote:

For PyPy: I'm not an expert in our import, but from looking at the source

1) imp.cachefromsource is unimplemented, it's an AttributeError. Jython does not (yet) have a cache_from_source.

2) sys.dontwritebytecode is always false, we don't respect that flag (we really should IMO, but it's not a high priority for me, or anyone else apparently) Jython does support sys.dont_write_bytecode, but doesn't support sys.dont_read_bytecode yet - do you happen to know when dont_read_bytecode was added? It should be pretty straightforward, and so I'll probably add it to our 2.7.

-Frank



More information about the Python-Dev mailing list