Python 3.3 and .pyo files

Marco nameDOTsurname at gmail.com
Fri Sep 21 11:27:49 EDT 2012


On 09/21/2012 02:55 PM, Steven D'Aprano wrote:

>> $ ls
>> >foo.pyo
>> ># The following works in Python3.2, but not in 3.3
>> >$ python3.3 -O -m foo
>> >/usr/local/bin/python3.3: No module named foo
>
> I can confirm that (1) it works using Python 3.2; (2) it doesn't work
> using Python 3.3; and (3) it does work in Python 3.3 if you don't use the
> -O option.

It doesn't work with Python 3.3.0rc2 too.

-- 
Marco



More information about the Python-list mailing list