Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [2.7] bpo-35133: Fix mistakes when concatenate string literals on different ↵ | Serhiy Storchaka | 2018-11-05 | 1 | -1/+1 |
| | | | | | | | | | | | | lines. (GH-10284) (GH-10335) (GH-10336) Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings. (cherry picked from commit 34fd4c20198dea6ab2fe8dc6d32d744d9bde868d) (cherry picked from commit 7054e5c80b6e98cd44e22d1bc2d7f0a94343089d) | ||||
* | Issue #27720: Fix error in eng_to_decimal docs and add examples from the ↵ | Raymond Hettinger | 2016-08-13 | 1 | -6/+25 |
| | | | | specification. | ||||
* | Issue #27171: Fix typos in documentation, code comments, and tests | Martin Panter | 2016-06-02 | 1 | -1/+1 |
| | |||||
* | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | |||||
* | Remove unused import | Raymond Hettinger | 2014-11-08 | 1 | -1/+0 |
| | |||||
* | Issue #21855: Fixed the decimal module in unicode disabled build. | Serhiy Storchaka | 2014-10-14 | 1 | -1/+4 |
| | |||||
* | Issue 22090: Fix '%' formatting for infinities and NaNs. | Stefan Krah | 2014-08-26 | 1 | -0/+2 |
| | |||||
* | Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry. | Senthil Kumaran | 2013-09-08 | 1 | -1/+1 |
| | | | | Addresses issue #18438 | ||||
* | Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. | Mark Dickinson | 2012-08-24 | 1 | -1/+7 |
| | |||||
* | Update link to the decimal arithmetic specification. | Raymond Hettinger | 2011-08-25 | 1 | -1/+1 |
| | |||||
* | Issue #12080: Fix a performance issue in Decimal._power_exact that caused ↵ | Mark Dickinson | 2011-06-04 | 1 | -38/+81 |
| | | | | some corner-case Decimal.__pow__ calls to take an unreasonably long time. | ||||
* | Neaten-up the fix to issue 11830 | Raymond Hettinger | 2011-04-12 | 1 | -11/+11 |
| | |||||
* | Issue #11830: Remove unnecessary introspection code in the decimal module. | Raymond Hettinger | 2011-04-12 | 1 | -14/+11 |
| | | | | | It was causing a failed import in the Turkish locale where the locale sensitive str.upper() method caused a name mismatch. | ||||
* | #11515: fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-15 | 1 | -1/+1 |
| | |||||
* | Issue 11131: Fix sign of zero result on plus and minus operations in ↵ | Mark Dickinson | 2011-03-12 | 1 | -8/+11 |
| | | | | ROUND_FLOOR rounding mode. | ||||
* | Merged revisions 82654 via svnmerge from | Mark Dickinson | 2010-07-08 | 1 | -15/+31 |
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82654 | mark.dickinson | 2010-07-08 22:15:36 +0100 (Thu, 08 Jul 2010) | 3 lines Issue #9136: Profiling Decimal gave 'dictionary changed size during iteration'. Remove the use of locals() that caused this error. ........ | ||||
* | Merged revisions 82646,82649-82650 via svnmerge from | Mark Dickinson | 2010-07-08 | 1 | -9/+12 |
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82646 | mark.dickinson | 2010-07-08 18:23:40 +0100 (Thu, 08 Jul 2010) | 1 line In test_decimal, convert heuristic for skipping tests into an explicit skiplist. ........ r82649 | mark.dickinson | 2010-07-08 20:03:34 +0100 (Thu, 08 Jul 2010) | 1 line Fix a performance issue in Decimal.pow. Thanks Stefan Krah for finding this. ........ r82650 | mark.dickinson | 2010-07-08 20:09:16 +0100 (Thu, 08 Jul 2010) | 1 line Fix misplaced exactness check that was causing unnecessary work in Decimal.__pow__. ........ | ||||
* | Fix typos in docstrings. | Stefan Krah | 2010-05-19 | 1 | -2/+2 |
| | |||||
* | Issue #8567: Fix incorrect precedence of signals in Decimal module. | Mark Dickinson | 2010-05-04 | 1 | -43/+83 |
| | | | | | | | | | | When a Decimal operation raises multiple signals and more than one of those signals is trapped, the specification determines the order in which the signals should be handled. In many cases this order wasn't being followed, leading to the wrong Python exception being raised. This commit fixes those cases, and adds extra tests. The tests are only enabled when EXTENDEDERRORTESTS is True, since they involve rerunning each Decimal testcase several times. | ||||
* | Issue 8257: Decimal constructor to accept float. | Raymond Hettinger | 2010-04-02 | 1 | -2/+6 |
| | |||||
* | Issue #7279: Make Decimal('nan') hashable. Decimal('snan') remains unhashable. | Mark Dickinson | 2010-04-02 | 1 | -4/+20 |
| | | | | | | Also rewrite the Decimal __hash__ method so that it doesn't rely on float('inf') being valid: float('inf') could raise an exception on platforms not using IEEE 754 arithmetic. | ||||
* | Issue #7279: Make comparisons involving a Decimal sNaN signal InvalidOperation. | Mark Dickinson | 2010-04-02 | 1 | -6/+9 |
| | |||||
* | Issue #2531: Make float-to-decimal comparisons return correct results. | Mark Dickinson | 2010-04-02 | 1 | -13/+25 |
| | | | | | | | Float to decimal comparison operations now return a result based on the numeric values of the operands. Decimal.__hash__ has also been fixed so that Decimal and float values that compare equal have equal hash value. | ||||
* | Doctest fixes for decimal.py: add an integer-argument doctest for ↵ | Mark Dickinson | 2010-02-18 | 1 | -18/+20 |
| | | | | logical_invert; don't use integer literals with a leading zero. | ||||
* | Issue #7633: Context method in the decimal module (with the exception | Mark Dickinson | 2010-02-18 | 1 | -18/+340 |
| | | | | | | of the 'canonical' and 'is_canonical' methods) now consistently accept integer arguments wherever a Decimal instance is accepted. Thanks Juan José Conti for the patch. | ||||
* | compare types with is not == | Benjamin Peterson | 2010-01-25 | 1 | -2/+2 |
| | |||||
* | mention from_float() in error message | Benjamin Peterson | 2010-01-25 | 1 | -2/+2 |
| | |||||
* | Add missing docstring for Context.divmod. Thanks Juan José Conti. | Mark Dickinson | 2010-01-06 | 1 | -0/+7 |
| | |||||
* | Issue #7233: Fix Decimal.shift and Decimal.rotate methods for | Mark Dickinson | 2009-10-29 | 1 | -8/+10 |
| | | | | | arguments with more digits than the current context precision. Bug reported by Stefan Krah. | ||||
* | Issue #7233: A number of two-argument Decimal methods were failing to | Mark Dickinson | 2009-10-29 | 1 | -1/+20 |
| | | | | accept ints and longs for the second argument. | ||||
* | Issue #7099: Decimal.is_normal should return True for all nonzero | Mark Dickinson | 2009-10-20 | 1 | -1/+1 |
| | | | | finite non-subnormal values, even those with exponent > Emax. | ||||
* | Issue #7048: logb should round its result when that result doesn't fit | Mark Dickinson | 2009-10-07 | 1 | -1/+2 |
| | | | | | | into the available precision. (Tests for this change are included in the most recent set of testcases from the Decimal Specification site; those testcases will be updated shortly.) | ||||
* | Issue #6857: Fix Decimal formatting to be consistent with existing float | Mark Dickinson | 2009-09-08 | 1 | -1/+4 |
| | | | | formatting: both are now right-aligned by default. | ||||
* | #Issue 6795: Fix infinite recursion in long(Decimal('nan')); change ↵ | Mark Dickinson | 2009-09-07 | 1 | -3/+2 |
| | | | | 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 | -1/+1 |
| | | | | with no type specifier. | ||||
* | Issue #6794: Fix handling of NaNs in Decimal.compare_total and | Mark Dickinson | 2009-08-28 | 1 | -2/+5 |
| | | | | Decimal.compare_total_mag. | ||||
* | Issue #6595: Allow Decimal constructor to accept non-European decimal | Mark Dickinson | 2009-08-02 | 1 | -17/+10 |
| | | | | | digits, as recommended by the specification. (Backport of r74279 from py3k.) | ||||
* | Update spec version number. | Raymond Hettinger | 2009-04-27 | 1 | -1/+1 |
| | |||||
* | Fix bug in _insert_thousands_sep: too much zero padding could be | Mark Dickinson | 2009-03-18 | 1 | -2/+1 |
| | | | | 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 | -83/+202 |
| | | | | to Decimal __format__ method. | ||||
* | Fix bug in Decimal __format__ method that swapped left and right | Mark Dickinson | 2009-03-17 | 1 | -2/+2 |
| | | | | alignment. | ||||
* | Add a version tag to the decimal module. | Raymond Hettinger | 2009-03-10 | 1 | -0/+2 |
| | |||||
* | Register decimals as numbers.Number | Raymond Hettinger | 2009-02-03 | 1 | -0/+7 |
| | |||||
* | Remove uses of cmp from the decimal module. | Mark Dickinson | 2009-01-25 | 1 | -3/+15 |
| | |||||
* | More Python 2.3 compatibility fixes for decimal.py. | Mark Dickinson | 2009-01-04 | 1 | -4/+4 |
| | |||||
* | Fix Decimal.from_float to use valid Python 2.3 syntax, as per | Mark Dickinson | 2009-01-04 | 1 | -3/+11 |
| | | | | | | comments at top of decimal.py. (But note that the from_float method itself with still not be usable before Python 2.7.) See issue 4796 for discussion. | ||||
* | Reapply r68191. | Raymond Hettinger | 2009-01-03 | 1 | -56/+56 |
| | |||||
* | Issue 4796: Add from_float methods to the decimal module. | Raymond Hettinger | 2009-01-03 | 1 | -56/+106 |
| | |||||
* | Issue #4812: further renaming of internal Decimal constants, for clarity. | Mark Dickinson | 2009-01-03 | 1 | -56/+56 |
| | |||||
* | Issue #4812: add missing underscore prefix to some internal-use-only | Mark Dickinson | 2009-01-02 | 1 | -63/+63 |
| | | | | constants in the decimal module. (Dec_0 becomes _Dec_0, etc.) |