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-August/068542.html below:

[Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumented

[Python-Dev] Py2.5 issue: decimal context manager misimplemented, misdesigned, and misdocumentedRaymond Hettinger rhettinger at ewtllc.com
Wed Aug 30 14:35:51 CEST 2006
Nick Coghlan wrote:

> Raymond Hettinger wrote:
>
>> I would like to see the changes to the decimal module reverted for 
>> the Py2.5 release.
>
>
> I believe you may be overreacting - I don't consider the current 
> behaviour buggy and the module level API can be added later.


My preference is to remove the method entirely and then implement the 
approach in PEP 343 by adding a module level "localcontext()" function 
in Py2.6.

If you keep the method, then at least:
* fix the docstring (and make it doctestable)
* rename the method to .localcontext()
* move the .copy() step to inside the contextmanager instead of its caller
* update the WhatsNew example to match
* add a unittest



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