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

Michael Hudson mwh at python.net
Thu Jul 7 14:28:00 CEST 2005


Barry Warsaw <barry at python.org> writes:

+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.

-1.

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

Slightly silly alternative: within and without

Meh.

Otherwise, +0 on enter and exit.

+1 from me.

Cheers, mwh

-- 58. Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it. -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html



More information about the Python-Dev mailing list