]> granicus.if.org Git - python/commit
The constructor from tuple was way too permissive: it allowed bad
authorFacundo Batista <facundobatista@gmail.com>
Fri, 19 Oct 2007 19:25:57 +0000 (19:25 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Fri, 19 Oct 2007 19:25:57 +0000 (19:25 +0000)
commit9b5e23148badbb0d11fffd05cf9d432f35631a4a
tree653ef26a251493caa5088ce7165adc97bb156294
parent91ac42243cd010691b082a0b2fdd414e6d47456c
The constructor from tuple was way too permissive: it allowed bad
coefficient numbers, floats in the sign, and other details that
generated directly the wrong number in the best case, or triggered
misfunctionality in the alorithms.

Test cases added for these issues. Thanks Mark Dickinson.
Lib/decimal.py
Lib/test/test_decimal.py