[Python-ideas] A couple of with statement ideas

MRAB python at mrabarnett.plus.com
Sun Feb 27 22:17:07 CET 2011


On 25/02/2011 21:45, Raymond Hettinger wrote:
>
>>
>>     I like __with__ as the special method name, as it very obviously
>>     suggests a tight connection with the with-statement.
>>
>
> +1
> I really like the tight association with the with-statement.
>
Although it's weird English, as Greg said, I'd prefer __with__ and
"withable object".



More information about the Python-ideas mailing list