+1 on @contextmanager

On Wed, 2005-07-06 at 19:47, Raymond Hettinger wrote:

> >      __enter__(self):
> >      __exit__(self, exc_type, exc_value, exc_traceback):
> 
> These names should be changed to __beginwith__ and __endwith__.  

-0.  My fingers are too hardwired to writing "endswith", as in the
string method of similar name.  ;)

Slightly silly alternative: __within__ and __without__

Otherwise, +0 on __enter__ and __exit__.

-Barry

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to