[Python-ideas] Non-boolean return from __contains__

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Jul 28 03:50:15 CEST 2010


Alexander Belopolsky wrote:

> 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. 

Except when they don't, and would be clearer
written in-line at the point of use.

-- 
Greg



More information about the Python-ideas mailing list