Thoughts on new grammar rules (PEP 284 in particular)
David Eppstein
eppstein at ics.uci.edu
Fri May 10 14:00:36 EDT 2002
In article <82undu4anb47usgck50ebil2ku1f36173q at 4ax.com>,
Steve Horne <steve at lurking.demon.co.uk> wrote:
> I was just reading PEP284 and, in general, I like it. The trouble is,
> I'd quite like these limit-specifications to be more general. For
> example, I'd quite like to write...
>
> if 0 <= x < 10 :
> print "x is in range"
>
> There is a big problem with this, of course - this is already legal
> Python, but the semantics aren't what I intend.
I don't understand your point -- what semantics do you intend for this
test that are different from current Python?
--
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