summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31406: Fix crash due to lack of type checking in subclassing. (#3477)Stefan Krah2017-09-101-5/+14
|
* bpo-31403: Remove WITHOUT_THREADS from _decimal. (#3474)Stefan Krah2017-09-092-113/+16
|
* bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142)Stefan Krah2017-08-181-0/+6
|
* bpo-27425: Be more explicit in .gitattributes (GH-840)Zachary Ware2017-06-101-111/+111
| | | Updates checked-in line endings on several files.
* Correct typo (#976)Angus Hollands2017-04-031-1/+1
|
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8()Serhiy Storchaka2017-01-221-1/+1
| | | | is now of type "const char *" rather of "char *".
* While a speedup of 1% is measurable, contexts aren't created that often,Stefan Krah2017-01-091-4/+4
| | | | so let's defer this until 3.7, 3.8, ... all have this new function.
* Merge 3.6.Stefan Krah2017-01-091-7/+7
|\
| * Merge 3.5.Stefan Krah2017-01-091-7/+7
| |\
| | * Issue #28701: Revert part of 5bdc8e1a50c8 for the following reasons:Stefan Krah2017-01-091-7/+7
| | | | | | | | | | | | | | | | | | - There was no real problem to begin with. - The hypothetical problem has been fixed by 5bdc8e1a50c8.
* | | Revert part of dbf72357cb4a that is in a rarely used path and causesStefan Krah2017-01-071-1/+1
| | | | | | | | | | | | maintenance issues (cost/benefit).
* | | Revert (unauthorized) parts of 54a89144ee1d which are not in a speed-sensitiveStefan Krah2017-01-071-4/+4
| | | | | | | | | | | | path in order to avoid maintenance issues.
* | | Revert (unauthorized) parts of b9eb35435178 which are not in a speed-sensitiveStefan Krah2017-01-071-1/+1
| | | | | | | | | | | | path and cause maintenance issues (3.6 <-> 3.7, private test suite).
* | | Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵Serhiy Storchaka2016-12-161-1/+1
| | | | | | | | | | | | dict.
* | | Don't parenthesis in _PyObject_CallMethodId() formatVictor Stinner2016-12-081-1/+1
| | | | | | | | | | | | | | | Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation a temporary tuple, and so is more efficient.
* | | Use _PyObject_CallNoArg()Victor Stinner2016-12-061-8/+8
|/ / | | | | | | | | | | | | Replace: PyObject_CallObject(callable, NULL) with: _PyObject_CallNoArg(callable)
* | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-7/+7
|\ \ | |/ | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
| * Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵Serhiy Storchaka2016-11-161-7/+7
| | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions.
* | Issue #26331: Implement the parsing part of PEP 515.Brett Cannon2016-09-091-4/+8
| | | | | | | | Thanks to Georg Brandl for the patch.
* | Fix some warnings from MSVCSteve Dower2016-09-071-4/+0
| |
* | include (now) int standard headersBenjamin Peterson2016-09-061-6/+2
| |
* | do not need vcstdint.h anymoreBenjamin Peterson2016-09-061-1/+0
| |
* | Merge 3.5.Stefan Krah2016-07-171-8/+51
|\ \ | |/
| * Issue #26974: Fix segfault in the presence of absurd subclassing. ProactivelyStefan Krah2016-07-171-3/+47
| | | | | | | | eliminate all internal uses of overridden methods.
* | Merge 3.5.Stefan Krah2016-06-201-1/+1
|\ \ | |/
| * Issue #27006: Do not use PyDec_CheckExact() on a type.Stefan Krah2016-06-201-1/+1
| |
* | Merge 3.5.Stefan Krah2016-06-201-2/+8
|\ \ | |/
| * Issue #27006: from_float(): call the subclass' __new__() and __init__().Stefan Krah2016-06-201-2/+8
| |
* | Issue #26846: Post commit cleanup.Stefan Krah2016-04-261-1/+0
| |
* | Issue #26846: Workaround for non-standard stdlib.h on Android.Stefan Krah2016-04-255-6/+4
| |
* | Issue #26200: Restored more safe usages of Py_SETREF.Serhiy Storchaka2016-04-111-4/+4
|\ \ | |/
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-4/+4
|\ \ | |/
* | Issue #26621: Update libmpdec version and remove unnecessary test case.Stefan Krah2016-03-231-2/+2
| |
* | Issue #26139: libmpdec: disable /W4 warning (non-standard dllimport behavior).Stefan Krah2016-01-171-0/+5
| |
* | Issue #25928: Add Decimal.as_integer_ratio(). Python parts and docs byStefan Krah2015-12-283-3/+113
|/ | | | Mark Dickinson.
* Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.Serhiy Storchaka2015-12-191-1/+1
| | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
* Issue #24974: Force fp-model precice in mpdecimal.c on WindowsZachary Ware2015-09-031-0/+1
| | | | As suggested by Steve Dower and approved by Stefan Krah.
* Closes #17202: Merge with 3.4Zachary Ware2015-04-131-111/+111
|\
| * Issue #17202: Add .bat to .hgeol to force them to CRLF.Zachary Ware2015-04-131-111/+111
| | | | | | | | | | Using LF can a script to fail if it tries to use a label that is split across 512 byte blocks. Who knows why.
* | Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-1/+1
|\ \ | |/ | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
| * Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-1/+1
| | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* | Removed redundant casts to `char *`.Serhiy Storchaka2014-09-281-2/+2
| | | | | | | | Corresponding functions now accept `const char *` (issue #1772673).
* | Issue #19232: Speed up decimal import. Additionally, since _decimal isStefan Krah2014-09-101-3/+4
| | | | | | | | | | self-contained, this change facilitates maintenance and the Python version can be easily imported for experimentation.
* | Merge 3.4.Stefan Krah2014-08-262-4/+8
|\ \ | |/
| * Introduce and check for MPD_VERSION_HEX for precise management of buildsStefan Krah2014-08-262-4/+8
| | | | | | | | with an external libmpdec.
* | Merge 3.4.Stefan Krah2014-08-261-4/+7
|\ \ | |/
| * Issue #22090: Fix '%' formatting for infinities and NaNs.Stefan Krah2014-08-261-4/+7
| |
| * Issue #21374: Fix pickling of DecimalTuple.Stefan Krah2014-04-291-4/+9
| |
* | Use $type instead of $cls in the signature specification.Stefan Krah2014-05-021-1/+1
| |