A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/064249.html below:

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

[Python-Dev] PEP 343 update (with statement context terminology) [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4