Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use assert[Not]IsInstance where appropriate | Ezio Melotti | 2010-01-24 | 1 | -2/+2 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -2/+2 |
| | |||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -24/+14 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -14/+24 |
| | | | | Patch by flox | ||||
* | Issue #7233: A number of two-argument Decimal methods were failing to | Mark Dickinson | 2009-10-29 | 1 | -0/+47 |
| | | | | accept ints and longs for the second argument. | ||||
* | Update decimal test data to the most recent set from Mike Cowlishaw. | Mark Dickinson | 2009-10-08 | 1 | -0/+11 |
| | |||||
* | Issue #6857: Fix Decimal formatting to be consistent with existing float | Mark Dickinson | 2009-09-08 | 1 | -1/+2 |
| | | | | formatting: both are now right-aligned by default. | ||||
* | #Issue 6795: Fix infinite recursion in long(Decimal('nan')); change ↵ | Mark Dickinson | 2009-09-07 | 1 | -0/+10 |
| | | | | int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext. | ||||
* | Issue #6850: Fix bug in Decimal._parse_format_specifier for formats | Mark Dickinson | 2009-09-07 | 1 | -0/+3 |
| | | | | with no type specifier. | ||||
* | Issue #6595: Allow Decimal constructor to accept non-European decimal | Mark Dickinson | 2009-08-02 | 1 | -3/+9 |
| | | | | | digits, as recommended by the specification. (Backport of r74279 from py3k.) | ||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -46/+46 |
| | |||||
* | fix incorrect auto-translation of TestSkipped -> unittest.SkipTest | Benjamin Peterson | 2009-03-26 | 1 | -3/+2 |
| | |||||
* | remove test_support.TestSkipped and just use unittest.SkipTest | Benjamin Peterson | 2009-03-26 | 1 | -2/+2 |
| | |||||
* | Fix bug in _insert_thousands_sep: too much zero padding could be | Mark Dickinson | 2009-03-18 | 1 | -0/+22 |
| | | | | added for 'n' formats with non-repeating thousands-separator. | ||||
* | Issue #2110: Add support for thousands separator and 'n' format specifier | Mark Dickinson | 2009-03-17 | 1 | -1/+97 |
| | | | | to Decimal __format__ method. | ||||
* | Fix bug in Decimal __format__ method that swapped left and right | Mark Dickinson | 2009-03-17 | 1 | -0/+6 |
| | | | | alignment. | ||||
* | Register decimals as numbers.Number | Raymond Hettinger | 2009-02-03 | 1 | -0/+7 |
| | |||||
* | Remove an unnecessary check from test_decimal. | Mark Dickinson | 2009-01-10 | 1 | -1/+0 |
| | |||||
* | Issue 4796: Add from_float methods to the decimal module. | Raymond Hettinger | 2009-01-03 | 1 | -0/+49 |
| | |||||
* | Replace occurrences of '\d' with '[0-9]' in Decimal regex, to make sure | Mark Dickinson | 2008-07-02 | 1 | -0/+3 |
| | | | | | | | | that the behaviour of Decimal doesn't change if/when re.UNICODE becomes assumed in Python 3.0. Also add a check that alternative Unicode digits (e.g. u'\N{FULLWIDTH DIGIT ONE}') are *not* accepted in a numeric string. | ||||
* | Fixed some test structures. Thanks Mark Dickinson. | Facundo Batista | 2008-05-02 | 1 | -16/+9 |
| | |||||
* | Remove some from __future__ import with_statements | Benjamin Peterson | 2008-04-30 | 1 | -1/+0 |
| | |||||
* | Issue #2482: Make sure that the coefficient of a Decimal | Mark Dickinson | 2008-03-25 | 1 | -0/+16 |
| | | | | | instance is always stored as a str instance, even when that Decimal has been created from a unicode string. | ||||
* | Issue #2478: Decimal(sqrt(0)) failed when the decimal context | Mark Dickinson | 2008-03-25 | 1 | -0/+6 |
| | | | | was not explicitly supplied. | ||||
* | Small fix that complicated the test actually when that | Facundo Batista | 2008-03-22 | 1 | -4/+10 |
| | | | | test failed. | ||||
* | Add __format__ method to Decimal, to support PEP 3101 | Mark Dickinson | 2008-02-29 | 1 | -0/+93 |
| | |||||
* | Fix decimal repr which should have used single quotes like other reprs. | Raymond Hettinger | 2008-02-14 | 1 | -1/+1 |
| | |||||
* | Issue 1979: Make Decimal comparisons (other than !=, ==) involving NaN | Mark Dickinson | 2008-02-06 | 1 | -1/+19 |
| | | | | raise InvalidOperation (and return False if InvalidOperation is trapped). | ||||
* | Move __builtins__.trunc() to math.trunc() per | Jeffrey Yasskin | 2008-02-01 | 1 | -2/+3 |
| | | | | | http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965. | ||||
* | Add support for trunc(). | Raymond Hettinger | 2008-01-24 | 1 | -0/+11 |
| | |||||
* | Issue 1780: Allow leading and trailing whitespace in Decimal constructor, | Mark Dickinson | 2008-01-12 | 1 | -0/+8 |
| | | | | | when constructing from a string. Disallow trailing newlines in Context.create_decimal. | ||||
* | Issue #1757: The hash of a Decimal instance is no longer affected | Facundo Batista | 2008-01-08 | 1 | -0/+17 |
| | | | | by the current context. Thanks Mark Dickinson. | ||||
* | Major change in the internal structure of the Decimal | Facundo Batista | 2007-11-23 | 1 | -0/+1 |
| | | | | | | | | | | number: now it does not store the mantissa as a tuple of numbers, but as a string. This avoids a lot of conversions, and achieves a speedup of 40%. The API remains intact. Thanks Mark Dickinson. | ||||
* | The constructor from tuple was way too permissive: it allowed bad | Facundo Batista | 2007-10-19 | 1 | -0/+27 |
| | | | | | | | | 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. | ||||
* | Made the various is_* operations return booleans. This was discussed | Facundo Batista | 2007-10-02 | 1 | -13/+39 |
| | | | | | | | | | | | 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 | ||||
* | Issue #1772851. Optimization of __hash__ to behave better for big big | Facundo Batista | 2007-09-19 | 1 | -0/+32 |
| | | | | numbers. | ||||
* | Fix obvious typo in threaded test. | Thomas Wouters | 2007-09-19 | 1 | -1/+1 |
| | |||||
* | The methods always return Decimal classes, even if they're | Facundo Batista | 2007-09-17 | 1 | -0/+15 |
| | | | | | executed through a subclass (thanks Mark Dickinson). Added a bit of testing for this. | ||||
* | Merged the decimal-branch (revisions 54886 to 58140). Decimal is now | Facundo Batista | 2007-09-13 | 1 | -48/+170 |
| | | | | | | | fully updated to the latests Decimal Specification (v1.66) and the latests test cases (v2.56). Thanks to Mark Dickinson for all his help during this process. | ||||
* | Make decimal.ContextManager a private implementation detail of ↵ | Nick Coghlan | 2006-09-02 | 1 | -13/+2 |
| | | | | decimal.localcontext() | ||||
* | Fix the wrongheaded implementation of context management in the decimal ↵ | Nick Coghlan | 2006-08-31 | 1 | -0/+39 |
| | | | | module and add unit tests. (python-dev discussion is ongoing regarding what we do about Python 2.5) | ||||
* | Fix tests so they pass in -R mode | Neal Norwitz | 2006-04-09 | 1 | -5/+8 |
| | |||||
* | test_main(): Restore the decimal context that was in | Tim Peters | 2006-03-31 | 1 | -10/+14 |
| | | | | | | | | effect at the time test_decimal was imported. Else running test_decimal had the bad side effect of permanently changing the decimal context in effect. That caused text_tokenize to fail if it ran after test_decimal. | ||||
* | whitespace normalisation | Anthony Baxter | 2006-03-30 | 1 | -1/+1 |
| | |||||
* | Make test_decimal work with -Qnew. | Georg Brandl | 2006-03-28 | 1 | -10/+16 |
| | |||||
* | * Fix decimal's handling of foreign types. Now returns NotImplemented | Raymond Hettinger | 2005-03-27 | 1 | -7/+50 |
| | | | | | | | instead of raising a TypeError. Allows other types to successfully implement __radd__() style methods. * Remove future division import from test suite. * Remove test suite's shadowing of __builtin__.dir(). | ||||
* | Bug #1163325: "special" decimals aren't hashable | Raymond Hettinger | 2005-03-15 | 1 | -0/+3 |
| | |||||
* | Bug #1083645 | Raymond Hettinger | 2004-12-18 | 1 | -2/+12 |
| | | | | * The decimal module wouldn't load on builds without threads. | ||||
* | SF bug #1071588 coercing decimal to int doesn't work between -1 and 1 | Raymond Hettinger | 2004-11-24 | 1 | -4/+4 |
| | |||||
* | Change the strategy for coping with time intensive tests from | Raymond Hettinger | 2004-09-04 | 1 | -7/+12 |
| | | | | | | | | "all or none" to "all or some". This provides much greater test coverage without eating much time. It also makes it more likely that routine regression testing will unearth bugs. |