[Python-ideas] with None (Was: Re: Enhanced context managers with ContextManagerExit and None)

Serhiy Storchaka storchaka at gmail.com
Tue Aug 13 21:23:59 CEST 2013


13.08.13 20:45, Terry Reedy написав(ла):
> As I understand the proposal, it is not to actually make None a context
> manager with __enter__ and __exit__ methods (bad),

Why?

> but to make it a
> signal to not do the normal calls.

I agree this is a bad idea.




More information about the Python-ideas mailing list