timeit.py examples in docs generate error

3c273 nospam at nospam.com
Thu Mar 9 15:07:18 EST 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!
Louis





More information about the Python-list mailing list