[pypy-issue] [issue946] timeit-as-CLI does not accept import

Xavier Morel tracker at bugs.pypy.org
Wed Nov 30 12:11:03 CET 2011

Xavier Morel <bugs.pypy.org at masklinn.net> added the comment:

> Are you sure pypy-c isn't a script that you wrote

It's the one provided by macports, but it does indeed seem to be a very small 
wrapper on the pypy-provided executable:

> cat $(which pypy-c)
/opt/local/lib/pypy/pypy-c $@

calling `/opt/local/lib/pypy/pypy-c` directly *does* work correctly[0], so 
marking this bug as invalid. Sorry about that.

> /opt/local/lib/pypy/pypy-c -mtimeit -s 'import random' 'random.random()'
10000000 loops, best of 3: 0.0463 usec per loop

status: chatting -> invalid

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list