Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge 3.5. | Stefan Krah | 2016-07-17 | 1 | -8/+51 |
|\ | |||||
| * | Issue #26974: Fix segfault in the presence of absurd subclassing. Proactively | Stefan Krah | 2016-07-17 | 1 | -3/+47 |
| | | | | | | | | eliminate all internal uses of overridden methods. | ||||
* | | Merge 3.5. | Stefan Krah | 2016-06-20 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27006: Do not use PyDec_CheckExact() on a type. | Stefan Krah | 2016-06-20 | 1 | -1/+1 |
| | | |||||
* | | Merge 3.5. | Stefan Krah | 2016-06-20 | 1 | -2/+8 |
|\ \ | |/ | |||||
| * | Issue #27006: from_float(): call the subclass' __new__() and __init__(). | Stefan Krah | 2016-06-20 | 1 | -2/+8 |
| | | |||||
* | | Issue #26846: Post commit cleanup. | Stefan Krah | 2016-04-26 | 1 | -1/+0 |
| | | |||||
* | | Issue #26200: Restored more safe usages of Py_SETREF. | Serhiy Storchaka | 2016-04-11 | 1 | -4/+4 |
|\ \ | |/ | |||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -4/+4 |
|\ \ | |/ | |||||
* | | Issue #25928: Add Decimal.as_integer_ratio(). Python parts and docs by | Stefan Krah | 2015-12-28 | 1 | -0/+101 |
|/ | | | | Mark Dickinson. | ||||
* | Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. | Serhiy Storchaka | 2015-12-19 | 1 | -1/+1 |
| | | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. | ||||
* | Removed redundant casts to `char *`. | Serhiy Storchaka | 2014-09-28 | 1 | -2/+2 |
| | | | | Corresponding functions now accept `const char *` (issue #1772673). | ||||
* | Introduce and check for MPD_VERSION_HEX for precise management of builds | Stefan Krah | 2014-08-26 | 1 | -2/+2 |
| | | | | with an external libmpdec. | ||||
* | Issue #21374: Fix pickling of DecimalTuple. | Stefan Krah | 2014-04-29 | 1 | -4/+9 |
| | |||||
* | remove unused zero constants | Benjamin Peterson | 2014-03-15 | 1 | -3/+0 |
| | |||||
* | 1) Prepare libmpdec for the 2.4.0 release. None of the following changes ↵ | Stefan Krah | 2013-11-24 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | affects _decimal: o Make all "mpd_t to C integer" conversion functions available in both the 64-bit and the 32-bit versions. o Make all mixed mpd_t/C integer arithmetic functions available in the 32-bit version. o Better handling of __STDC_LIMIT_MACROS for C++ users. o Add struct tags (at the request of C++ users). 2) Check for libmpdec.so.2 if --with-system-libmpdec is used. | ||||
* | Move PyErr_NoMemory() closer to the failure. | Stefan Krah | 2013-11-08 | 1 | -1/+1 |
| | |||||
* | Change style to match the surrounding code (no early returns). | Stefan Krah | 2013-11-08 | 1 | -4/+3 |
| | |||||
* | Issue #19437: Fix dec_format() of the _decimal module, handle dec_strdup() | Victor Stinner | 2013-10-29 | 1 | -0/+1 |
| | | | | failure (memory allocation failure): raise a MemoryError exception | ||||
* | Issue #19437: Fix convert_op_cmp() of decimal.Decimal rich comparator, handle | Victor Stinner | 2013-10-29 | 1 | -10/+17 |
| | | | | PyObject_IsInstance() failure | ||||
* | Backport bff16086f03b and bcaaaa00425b. | Stefan Krah | 2013-05-29 | 1 | -5/+5 |
| | |||||
* | Issue #17768: Support newline fill character in decimal.py and NUL fill | Stefan Krah | 2013-05-29 | 1 | -9/+55 |
| | | | | character in _decimal.c. | ||||
* | Since the return type of format() is not a Decimal, raise ValueError instead of | Stefan Krah | 2013-01-24 | 1 | -1/+7 |
| | | | | | InvalidOperation if the format specification (width, prec) exceeds the internal limits of libmpdec. | ||||
* | Issue #16422: Use strings for rounding mode constants for better readability | Stefan Krah | 2013-01-16 | 1 | -65/+55 |
| | | | | and pickling compatibility. | ||||
* | Issue #16745: Hide a couple of symbols by making them local. | Stefan Krah | 2012-12-21 | 1 | -1/+1 |
| | |||||
* | Issue #15783: Support None default values in the Context() constructor. | Stefan Krah | 2012-12-16 | 1 | -30/+33 |
| | |||||
* | Issue #15783: Except for the number methods, the C version of decimal now | Stefan Krah | 2012-12-15 | 1 | -84/+103 |
| | | | | | supports all None default values present in decimal.py. These values were largely undocumented. | ||||
* | Accept Unicode legacy strings in the Decimal constructor. | Stefan Krah | 2012-11-10 | 1 | -1/+3 |
| | |||||
* | Issue #16431: Finally, consider all permutations. | Stefan Krah | 2012-11-08 | 1 | -2/+2 |
| | |||||
* | Issue #16431: Also fix the opposite direction. | Stefan Krah | 2012-11-07 | 1 | -1/+1 |
| | |||||
* | Issue #16431: Use the type information when constructing a Decimal subtype | Stefan Krah | 2012-11-07 | 1 | -2/+27 |
| | | | | from a Decimal argument. | ||||
* | Issue #15882: Change _decimal to accept any coefficient tuple when | Stefan Krah | 2012-09-10 | 1 | -0/+7 |
| | | | | | | constructing infinities. This is done for backwards compatibility with decimal.py: Infinity coefficients are undefined in _decimal (in accordance with the specification). | ||||
* | Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. | Mark Dickinson | 2012-08-24 | 1 | -1/+17 |
| | |||||
* | mpd_qpowmod(): calculate result with zero-exponent for compatibility with | Stefan Krah | 2012-08-23 | 1 | -8/+0 |
| | | | | decimal.py. The hack to remove the ideal exponent is no longer required. | ||||
* | In the 32-bit build, dec_hash() raised InvalidOperation if the operand | Stefan Krah | 2012-08-22 | 1 | -4/+12 |
| | | | | | | had a coefficient with MAX_PREC=425000000 digits and a negative exponent. Increasing the context limits above the official values fixes the issue and is safe (in this case!). | ||||
* | Add unused parameter to a couple of METH_NOARGS functions. The previous | Stefan Krah | 2012-07-28 | 1 | -8/+8 |
| | | | | | form is used in many places in the source tree, but was found to be incorrect in a recent tracker discussion. | ||||
* | Proactive reliability fix for broken FPUs: The base conversion functions | Stefan Krah | 2012-06-30 | 1 | -18/+20 |
| | | | | | | | | | | use log10() to calculate the size of the output array. The current code has been tested on x86/amd64 (and to a lesser extent on qemu-mips qemu-sparc) and produces sufficiently large values for all inputs tested so far (coefficient sizes of 10**18 - 1 are hard to test exhaustively). The new code does not rely on the correctness of log10() and resizes the output arrays if the allocated space is insufficient. | ||||
* | Speed up _decimal by another 10-15% by caching the thread local context | Stefan Krah | 2012-06-24 | 1 | -21/+58 |
| | | | | | that was last accessed. In the pi benchmark (64-bit platform, prec=9), _decimal is now only 1.5x slower than float. | ||||
* | Issue #14478: Cache the hash of a Decimal in the C version. | Stefan Krah | 2012-04-10 | 1 | -1/+14 |
| | |||||
* | Issue #14520: Add __sizeof__() method to the Decimal object. | Stefan Krah | 2012-04-09 | 1 | -0/+14 |
| | |||||
* | Speed up _decimal by 30-40% for numerical workloads by improving the cache | Stefan Krah | 2012-04-09 | 1 | -16/+18 |
| | | | | locality for regularly sized coefficients. | ||||
* | Use the MPD() accessor macro. | Stefan Krah | 2012-04-09 | 1 | -2/+2 |
| | |||||
* | Whitespace. | Stefan Krah | 2012-04-05 | 1 | -1/+1 |
| | |||||
* | Reduce array size. | Stefan Krah | 2012-04-05 | 1 | -1/+1 |
| | |||||
* | Formatting. | Stefan Krah | 2012-04-05 | 1 | -2/+2 |
| | |||||
* | Allow printing a leading '-' and the maximum number of exponent digits | Stefan Krah | 2012-04-05 | 1 | -2/+2 |
| | | | | | rather than raising RuntimeError (allocated space is sufficient for the additional character). | ||||
* | Raise InvalidOperation if exponents of zeros are clamped during exact | Stefan Krah | 2012-04-05 | 1 | -2/+2 |
| | | | | | conversion in the Decimal constructor. Exact here refers to the representation and not to the value (clamping does not change the value). | ||||
* | Improve comments. | Stefan Krah | 2012-04-02 | 1 | -5/+5 |
| | |||||
* | Clear the context flags if a context is initialized from the DefaultContext. | Stefan Krah | 2012-04-02 | 1 | -0/+8 |
| | |||||
* | Raise MemoryError instead of InvalidOperation/MallocError for compatibility | Stefan Krah | 2012-03-25 | 1 | -1/+8 |
| | | | | | | with decimal.py. The standard specifies InsufficientStorage (MallocError) as a sub-condition of InvalidOperation. This allows a calculation to continue with NaN results when allocation fails. |