[Python-Dev] Fwd: PEP 310(with-syntax): close synonym of __exit__

Guido van Rossum guido at python.org
Tue Aug 26 08:02:26 EDT 2003


> FWIW, I think this has come up before.  For *me*, I think having less
> magic is worth the pain of adding "__exit__ = close" to a few class
> statements.  Do you want to add "release" as a synonym too?  I don't.

Agreed.  "Only one way."

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list