summaryrefslogtreecommitdiffstats
path: root/Lib/_pydecimal.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35133: Fix mistakes when concatenate string literals on different lines. ↵Serhiy Storchaka2018-11-051-1/+1
| | | | | | | | | | (GH-10284) 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.
* bpo-32630: Use contextvars in decimal (GH-5278)Yury Selivanov2018-01-271-11/+9
|
* Trivial cleanups following bpo-31370 (#3649)Antoine Pitrou2017-09-181-4/+1
| | | | | | * Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-64/+23
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-29776: Use decorator syntax for properties. (#585)Serhiy Storchaka2017-03-191-2/+2
|
* Fixed #29534 - _decimal difference with _pydecimal (#65)Andrew Nester2017-02-141-11/+16
|
* Issue #27348: Merge exception formatting fix from 3.5 into 3.6Martin Panter2016-09-221-1/+1
|\
| * Issue #27348: Restore “Exception: None” formatting in traceback moduleMartin Panter2016-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression caused by revision 73afda5a4e4c. Also reverts the decimal test workaround added in revision 5f3dd0a2b1ab. Remove test_without_exception(). According to revision ecaafc32c500, this was added in Python 2 so that print_exc() would output “None” when called with no exception set. However print_exc() never worked like this in Python 3, and the use case is not documented. Restore TracebackCases class name (instead of SyntaxTracebackCases), because the class also tests other exceptions.
* | Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-091-5/+5
| | | | | | | | Thanks to Georg Brandl for the patch.
* | mergeRaymond Hettinger2016-08-131-6/+25
|\ \ | |/
| * Issue #27720: Fix error in eng_to_decimal docs and add examples from the ↵Raymond Hettinger2016-08-131-6/+25
| | | | | | | | | | | | specification. (Based on a first draft patch from Evelyn Mitchell.)
* | Issue #27171: Merge typo fixes from 3.5Martin Panter2016-06-021-1/+1
|\ \ | |/
| * Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
| |
* | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and errorSerhiy Storchaka2016-04-171-1/+1
|\ \ | |/ | | | | messages.
| * Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
| |
* | Issue #26621: Update libmpdec version and remove unnecessary test case.Stefan Krah2016-03-231-1/+1
| |
* | Issue #25971: Optimized creating Fractions from floats by 2 times and fromSerhiy Storchaka2015-12-291-4/+2
| | | | | | | | | | | | Decimals by 3 times. Unified error messages in float.as_integer_ratio(), Decimal.as_integer_ratio(), and Fraction constructors.
* | Issue #25928: Add Decimal.as_integer_ratio(). Python parts and docs byStefan Krah2015-12-281-0/+52
|/ | | | Mark Dickinson.
* Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-6/+5
| | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
* Remaining fallout from 17911Robert Collins2015-03-051-1/+1
| | | | | | | | | | | | | The code module was using a private function from traceback in order to skip a frame - used the direct interface to do that instead, The decimal module suffered minor fallout from formatting changes ('None' as a value is now not printed by traceback, the same as None was not before). The cgitb module was passing a bogus exception type (type.__name__) into format_exception, which uncovered that format_exception and print_exception had been ignoring the etype for some time, so the compatibility thunk to the new code now does the same thing.
* Issue #23326: Removed __ne__ implementations. Since fixing default __ne__Serhiy Storchaka2015-01-311-9/+0
| | | | implementation in issue #21408 they are redundant.
* Issue #19232: Fix sys.modules lookup (--without-threads)Stefan Krah2014-10-121-1/+2
|
* Issue #19232: Speed up decimal import. Additionally, since _decimal isStefan Krah2014-09-101-0/+6389
self-contained, this change facilitates maintenance and the Python version can be easily imported for experimentation.