[Python-Dev] accumulator display syntax
Guido van Rossum
guido at python.org
Thu Oct 23 00:25:49 EDT 2003
> > > pipe = source
> > > for p in predicates:
> > > pipe = e for e in pipe if ^p(e)
> >
> > Bah. Arbitrary semantics bound to line-noise characters. Guess what
> > that reminds me of. :-)
>
> If anyone can think of anything less line-noisy, I'm
> open to suggestions. The important thing is the idea of
> explicitly capturing an enclosing binding, however it's
> expressed.
I think that no matter what notation you invent, this will remain an
unpythonic thing. I can't quite explain why I feel that way. Maybe
it's because it feels very strongly like a directive to the compiler
-- Python's compiler likes to stay out of the way and not need help.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list