[Python-ideas] Tighten up the formal grammar and parsing a bit?
Steven D'Aprano
steve at pearwood.info
Thu May 18 09:03:35 EDT 2017
On Mon, May 15, 2017 at 11:17:48PM +1000, Chris Angelico wrote:
> On Mon, May 15, 2017 at 11:00 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> > There's also cases where
> >
> > if x > y:
> > pass
> > else:
> > code
> >
> > is *not necessarily* the same as
> >
> > if not (x > y):
> > code
> >
> > (x > y) is not always not(x <= y). E.g. sets, and even floats.
>
> Uhm.... not sure what you're getting at here.
Neither am I, now :-)
I'm not quite sure what I was thinking, but it made sense at the time.
Sorry for the noise.
--
Steve
More information about the Python-ideas
mailing list