]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Made the various is_* operations return booleans. This was discussed
authorFacundo Batista <facundobatista@gmail.com>
Tue, 2 Oct 2007 17:01:24 +0000 (17:01 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Tue, 2 Oct 2007 17:01:24 +0000 (17:01 +0000)
commit1a191df14dc2f37933ef32f553fcaa7a5ac77cf7
treeca894139a8f401a3ab8eaa158708920aa9b584c8
parent31ba8480d823f2c424d77ccd8c446b79ca48c1ce
Made the various is_* operations return booleans.  This was discussed
with Cawlishaw by mail, and he basically confirmed that to these is_*
operations, there's no need to return Decimal(0) and Decimal(1) if
the language supports the False and True booleans.

Also added a few tests for the these functions in extra.decTest, since
they are mostly untested (apart from the doctests).

Thanks Mark Dickinson
Lib/decimal.py
Lib/test/decimaltestdata/extra.decTest
Lib/test/test_decimal.py