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/2005-July/054612.html below:

[Python-Dev] Terminology for PEP 343

[Python-Dev] Terminology for PEP 343 [Python-Dev] Terminology for PEP 343Raymond Hettinger python at rcn.com
Mon Jul 4 08:34:51 CEST 2005
[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
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