[Python-Dev] PEP 343 update (with statement context terminology)

Oleg Broytmann phd at mail2.phd.pp.ru
Mon Apr 24 09:09:18 CEST 2006


On Mon, Apr 24, 2006 at 12:44:09PM +1000, Nick Coghlan wrote:
> Paul Moore wrote:
> > - Surely the __context__ method should be called __contextmgr__ now
> > that it's producing a context manager? (Same naming issue, just the
> > other side of it...)
> 
> The __iter__ method isn't called __iterator__, so why would the __context__ 
> method need to be called "__contextmgr__"?

   It should be __ctxmgr__ to be in par with __iter__, __len__, dict and so
on ;)

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list