[Python-Dev] Terminology for PEP 343

Aahz aahz at pythoncraft.com
Sun Jul 3 23:50:25 CEST 2005


On Sun, Jul 03, 2005, Raymond Hettinger wrote:
> [Michael Walter]
>>
>> How about simply "with block" or "guarded scope" or something like
>> that?
> 
> How would you use that to describe decimal.Context() objects after
> Nick adds the __enter__ and __exit__ magic methods?  We want something
> as direct as, "xrange objects are iterable".

How about "decimal.Context() objects are managed resources" or "...have
guarded scopes"?  (I'm not terribly wild about either, but they are
fairly simple and direct.)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

f u cn rd ths, u cn gt a gd jb n nx prgrmmng.


More information about the Python-Dev mailing list