summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35059, libmpdec: Add missing EXTINLINE in mpdecimal.h (GH-10128)Miss Islington (bot)2018-10-261-5/+5
| | | | | | | | | | | | | | | | Declare functions with EXTINLINE: * mpd_del() * mpd_uint_zero() * mpd_qresize() * mpd_qresize_zero() * mpd_minalloc() These functions are implemented with "inline" or "ALWAYS_INLINE", but declared without inline which cause linker error on Visual Studio in Debug mode when using /Ob1. (cherry picked from commit 3b1cba3701fd1321a9bdafa9e683f891369f0cfd) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* [3.6] bpo-30923: Silence fall-through warnings included in -Wextra since ↵Victor Stinner2017-09-121-0/+6
| | | | | | | | | | | | | | | | gcc-7.0 (#3518) * bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142) (cherry picked from commit d73a960c575207539c3f9765cff26d4fff400b45) * bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157) (cherry picked from commit f432a3234f9f2ee09bd40be03e06bf72865ee375) * bpo-31275: Small refactoring to silence a fall-through warning. (#3206) (cherry picked from commit 138753c1b96b5e06a5c5d409fa4cae5e2fe1108b)
* [3.6] bpo-31406: Fix crash due to lack of type checking in subclassing. ↵Miss Islington (bot)2017-09-101-5/+14
| | | | | (GH-3477) (#3479) (cherry picked from commit 3cedf46cdbeefc019f4a672c1104f3d5e94712bd)
* [3.6] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2083)Zachary Ware2017-06-101-111/+111
| | | Also updates checked-in line endings on some files
* 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.
* | 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
| |
* | Issue #21407: _decimal now supports function signatures.Stefan Krah2014-05-011-378/+482
| |
* | Issue #21374: Fix pickling of DecimalTuple.Stefan Krah2014-04-291-4/+9
|/
* remove unused zero constantsBenjamin Peterson2014-03-151-3/+0
|
* Issue #19936: Remove executable bits from C source files and several forgottenSerhiy Storchaka2014-01-162-0/+0
| | | | test files.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-162-0/+0
| | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* Issue #19936: Disable shebang lines in order to prevent using a randomStefan Krah2014-01-163-6/+0
| | | | system python.
* Whitespace.Stefan Krah2014-01-041-3/+3
|
* Issue #19986: Avoid an incorrect warning of older gcc versions.Stefan Krah2013-12-151-3/+4
|
* Fix C++ header usage. This __STDC_LIMIT_MACROS scheme can still be subvertedStefan Krah2013-12-141-9/+11
| | | | | by including stdint.h before mpdecimal.h. In that case the only option left is to compile with -D_STDC_LIMIT_MACROS.
* Do not discard const qualifier without a reason.Stefan Krah2013-12-121-7/+7
|
* Fix two typos.Stefan Krah2013-12-082-2/+2
|