R. David Murray added the comment:

OK, I'll change the title to reflect the current proposal, and we'll see if 
anyone is interested in proposing a patch.

The bug with python -m py_compile is when you do:

    python -m py_compile myscript

where myscript is a file containing python code (note there is no .py 
extension).  In this case you will end up with:

  __pycache__/myscriptcpython-36.pyc

(for example).  This is clearly a bug, but should be reported in a new issue.

----------
title: py_compile disregards PYTHONDONTWRITEBYTECODE and -B -> Add option to 
py_compile to compile for syntax checking without writing bytecode

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25303>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to