[Aahz]
> 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.)

See my other posts which bag on both "managed resources" and "guarded".
The part about scopes is less clear -- there is certainly a span of
action but the scope concept is more closely aligned with namespaces
(and we're not creating a new namespace here).

For extra credit, any proposed solution ought to also deal with the two
kinds of __enter__ methods.  One is expected to be used with "as" and
the other is not.  Neither of the above wordings begin to suggest
whether decimal.Context.__enter__ will return a useful value (the PEP
has examples of each).


Raymond
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to