timeit.py examples in docs generate error
nospam at nospam.com
Thu Mar 9 21:07:18 CET 2006
"Duncan Booth" <duncan.booth at invalid.invalid> wrote in message
news:Xns9781C41BAEF48duncanbooth at 127.0.0.1...
> Window's command processor doesn't recognise single quote marks as
> meaning anything special, so your command is passing 4 separate arguments
> to timeit.py instead of the 1 argument that a unix shell would be passing.
> Try using double quotes around everything instead:
> timeit.py "if hasattr(int, '__nonzero__'): pass"
That did the trick. Thanks!
More information about the Python-list