python-dev summary, July 16-31
aleax at aleax.it
Wed Aug 8 18:09:22 CEST 2001
"Peter Hansen" <peter at engcorp.com> wrote in message
news:3B7085F9.28830B9A at engcorp.com...
> François Pinard wrote:
> > 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
> I would never have thought to write either of these. On the other
> hand, if I did write things the second way, I would _expect_ that
> the first one would work as well.
> > 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
> It's not so much that symmetry is missing -- it just doesn't follow
> the "rule of least surprise", does it?
I fully agree, so I just submitted a feature request to sourceforge --
hopefully one doesn't have to write a PEP for _this_ sort of stuff?-)
More information about the Python-list