A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-October/057041.html below:

[Python-Dev] Proposed changes to PEP 343

[Python-Dev] Proposed changes to PEP 343 [Python-Dev] Proposed changes to PEP 343Fredrik Lundh fredrik at pythonware.com
Fri Oct 7 12:26:34 CEST 2005
Nick Coghlan wrote:

>     9. Here's a proposed native context manager for decimal.Context:
>
>         # This would be a new decimal.Context method
>         @contextmanager
>         def __with__(self):

wouldn't it be better if the ContextWrapper class (or some variation thereof) could
be used as a base class for the decimal.Context class?  using decorators on methods
to provide "is a" behaviour for the class doesn't really feel pythonic...

</F> 



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