PEP 276 Simple Iterator for ints (fwd)

Steve Holden sholden at holdenweb.com
Wed Nov 28 22:41:47 EST 2001


"Greg Ewing" <greg at cosc.canterbury.ac.nz> wrote ...
> "Colin J. Williams" wrote:
> >
> > What parsing problems would be created by:
> >
> >      for 0 < i < 10, 3
> >
> > to give 3, 6, 9?
>
> Probably it would be parsed as
>
>   for 0 < i < (10, 3):
>
Wouldn't

     for ((0 < i < 10), 3)

be more likely? I have to say I don't think this is one of your better
ideas...

> Besides, it's getting away from the self-evident
> nature of my original suggestion, which is the
> only thing it really had going for it.
>
Let it die ... :-)

regards
 Steve





More information about the Python-list mailing list