[Python-ideas] Non-boolean return from __contains__
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Jul 28 03:27:39 CEST 2010
Bruce Leban wrote:
> Isn't there are already a syntax for this?
>
> expr = lambda: x + y * z
>
> Maybe you want some conversion of that lambda into a different form:
>
> expr = @ast lambda: x + y + z
If you need new syntax for this, then it's a sign that
there *isn't* already a syntax for what we want. Given
that we need new syntax anyway, there doesn't seem to
be any point in bothering with the lambda:
expr = @ast: x + y + z
or any other suitable syntax.
--
Greg
More information about the Python-ideas
mailing list