[Python-ideas] Non-boolean return from __contains__
Alexander Belopolsky
alexander.belopolsky at gmail.com
Tue Jul 27 21:05:10 CEST 2010
On Tue, Jul 27, 2010 at 3:00 PM, Masklinn <masklinn at masklinn.net> wrote:
..
> The nice thing about having it be special-sauce syntax is that it can be parsed along with the rest of the
> script, failing early, and it can be stored in bytecode. Whereas the string itself will only be parsed when
> the function is actually executed.
Not enough to justify new syntax IMO. Just create your parse trees at
the module or class level. chances are that's where they belong
anyways. I would be very interested to see the parse() function. It
does not exist (yet), right?
More information about the Python-ideas
mailing list