PEP 276 Simple Iterator for ints (fwd)
David Eppstein
eppstein at ics.uci.edu
Thu Dec 6 20:46:42 EST 2001
In article <9up46o$e2ost$1 at fido.engr.sgi.com>, pj at sgi.com (Paul Jackson)
wrote:
> Ok - so you choose to go down that fork in the decision tree:
>
> The problem I have with this then is that it results
> in the comparison operators <, <=, ..., >, >= sometimes
> requiring a list of assignable expressions on one or the
> other side, as opposed to their current usage, which
> requires comparable expressions on both sides.
>
> This sort of subtle, context sensitive syntax change
> feels weird and unsettling to me.
And you're not equally unsettled by the identical behavior of "in"?
> I suspect you wouldn't want me to be able to say:
>
> for (1,10) <= (a,b) <= (2,11):
>
> Or perhaps you would ?? This starts to get complicated again.
I'm not sure about that one.
--
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/
More information about the Python-list
mailing list