[issue25970] py_compile.compile fails if existing bytecode file is unwritable

2015-12-28 Thread Robert Byrnes
New submission from Robert Byrnes: In Python/import.c, open_exclusive unlinks any existing bytecode file before opening to create a new one. However, py_compile.compile doesn't unlink before opening, and therefore fails if an existing bytecode file is unwritable. It would be nice to u

[issue25711] Rewrite zipimport from scratch

2015-11-23 Thread Robert Byrnes
Changes by Robert Byrnes : -- nosy: +byrnes ___ Python tracker <http://bugs.python.org/issue25711> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25710] zipimport is not PEP 3147 or PEP 488 compliant

2015-11-23 Thread Robert Byrnes
New submission from Robert Byrnes: zipimport is not PEP 3147 compliant: i.e., it looks for foo.pyc (in the same directory as foo.py) instead of __pycache__/foo.cpython-35.pyc. This is counterintuitive, and unfortunate because it means that installation directories (that obey PEP 3147