]> granicus.if.org Git - python/commit
SF bug #1002530: test_decimal fails if repeated
authorRaymond Hettinger <python@rcn.com>
Fri, 6 Aug 2004 23:42:16 +0000 (23:42 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 6 Aug 2004 23:42:16 +0000 (23:42 +0000)
commit61992efc4bb413ae7a19752215eca5af09be6b6d
tree1f2d74d26d74767bd1211cea11bfdb46179162c1
parent19397e5ec549e5281b33aa5795b517006c00f64d
SF bug #1002530:  test_decimal fails if repeated

* Protect the pre-defined contexts by using a deepcopy() instead of copy().
* Micro-optimization:  prefer x&1 over x%2
Lib/decimal.py