[Python-Dev] 'With' context documentation draft (was Re: Terminology for PEP 343 (original) (raw)

Barry Warsaw barry at python.org
Thu Jul 7 03:34:51 CEST 2005


+1 on @contextmanager

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

> enter(self): > exit(self, exctype, excvalue, exctraceback):

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

-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 307 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20050706/ef6636e1/attachment.pgp



More information about the Python-Dev mailing list