]> granicus.if.org Git - python/commit
Improve Context construction and representation:
authorRaymond Hettinger <python@rcn.com>
Sat, 10 Jul 2004 14:14:37 +0000 (14:14 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 10 Jul 2004 14:14:37 +0000 (14:14 +0000)
commitbf4406971ce34434ed914d17fab70370948d2aab
treef2b71e0dc3238ab5bc69f465497f5a10fc4e4d9d
parentd9dfe0213fa391a212d2557271fa6b4e8dc91a1f
Improve Context construction and representation:

* Rename "trap_enablers" to just "traps".
* Simplify names of "settraps" and "setflags" to just "traps" and "flags".
* Show "capitals" in the context representation
* Simplify the Context constructor to match its repr form so that only
  the set flags and traps need to be listed.
* Representation can now be run through eval().

Improve the error message when the Decimal constructor is given a float.

The test suite no longer needs a duplicate reset_flags method.
Doc/lib/libdecimal.tex
Lib/decimal.py
Lib/test/test_decimal.py