python-dev summary, July 16-31
François Pinard
pinard at iro.umontreal.ca
Tue Aug 7 17:46:01 EDT 2001
[Just van Rossum]
> But there has always been a nice symmetry between "if x in y" and
> "for x in y",
About that one, it always saddened me a little bit that I may not write:
if x in 1, 2, 3:
pass
while I can write:
for x in 1, 2, 3:
pass
In the first, I write the parentheses so it gets accepted, but I would
prefer not using them. It breaks some of the symmetry, in my opinion :-).
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list