[pypy-dev] Can't import pyc file

Antonio Cuni anto.cuni at gmail.com
Tue May 10 09:53:16 CEST 2011


On 10/05/11 00:36, cool-RR wrote:
> Is it true that Pypy can't import a `.pyc` file?

yes, by default pyc files which don't have the corresponding py file are ignored.

You can change the behavior by translating pypy by yourself and using the
--objspace-lonepycfiles option:

$ ./translate.py -Ojit targetpypystandalone --objspace-lonepycfiles

ciao,
Anto


More information about the pypy-dev mailing list