[New-bugs-announce] [issue16046] python -O does not find *.pyo files

Marco Buttu report at bugs.python.org
Tue Sep 25 16:02:05 CEST 2012


New submission from Marco Buttu:

$ echo "print(__file__)" > foo.py
$ python3.3 -O -m foo
/home/marco/temp/foo.py
$ ls
foo.py  __pycache__
$ rm foo.py
$ mv __pycache__/foo.cpython-33.pyo foo.pyo
$ rm __pycache__ -r
$ ls
foo.pyo
# The following works in Python3.2, but not in Python 3.3.0rc3
$ python3.3 -O -m foo
/usr/local/bin/python3.3: No module named foo

----------
components: Interpreter Core
messages: 171276
nosy: mbuttu
priority: normal
severity: normal
status: open
title: python -O does not find *.pyo files
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16046>
_______________________________________


More information about the New-bugs-announce mailing list