Michael Press <[EMAIL PROTECTED]> writes:
>   File "/Users/mdp/source/prime_counter_python", line 6
>     return x - sum(phi(x // ps[i+1], i) for i in range(a))
>                                           ^
> SyntaxError: invalid syntax
> 
> Here are some lines from python -v:
> 
> Python 2.3 (#1, Sep 13 2003, 00:49:11) 

Generator comprehensions like you used weren't introduced til 
Python 2.4, so 2.3 will raise a syntax error like you got.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to