L
Laurent Pointal
[Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)]
File "<stdin>", line 1
SyntaxError: invalid syntax
Why does Python allow generator expression parenthesis to be mixed with
function call parenthesis when there is only one parameter ?
IMHO this should be forbidden, usage must not be different when there is
only one parameter and when there are more parameters.
User should all times explicitly use () for a generator expression and
[] for a list comprehension expression.
File "<stdin>", line 1
SyntaxError: invalid syntax
Why does Python allow generator expression parenthesis to be mixed with
function call parenthesis when there is only one parameter ?
IMHO this should be forbidden, usage must not be different when there is
only one parameter and when there are more parameters.
User should all times explicitly use () for a generator expression and
[] for a list comprehension expression.