Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393) | Victor Stinner | 2020-02-07 | 1 | -3/+3 |
| | | | Replace direct access to PyObject.ob_type with Py_TYPE(). | ||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -8/+8 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | bpo-36793: Remove unneeded __str__ definitions. (GH-13081) | Serhiy Storchaka | 2019-05-06 | 1 | -1/+1 |
| | | | | Classes that define __str__ the same as __repr__ can just inherit it from object. | ||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749) | Serhiy Storchaka | 2018-11-27 | 1 | -38/+38 |
| | | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code. | ||||
* | bpo-34762: Update PyContext* to PyObject* in asyncio and decimal (GH-9609) | Yury Selivanov | 2018-09-27 | 1 | -3/+3 |
| | | | This fixes various compiler warnings. | ||||
* | bpo-25988: Emit a warning when use or import ABCs from 'collections'. (#5460) | Serhiy Storchaka | 2018-01-31 | 1 | -1/+5 |
| | |||||
* | bpo-32630: Use contextvars in decimal (GH-5278) | Yury Selivanov | 2018-01-27 | 1 | -89/+31 |
| | |||||
* | bpo-31406: Fix crash due to lack of type checking in subclassing. (#3477) | Stefan Krah | 2017-09-10 | 1 | -5/+14 |
| | |||||
* | bpo-31403: Remove WITHOUT_THREADS from _decimal. (#3474) | Stefan Krah | 2017-09-09 | 1 | -94/+1 |
| | |||||
* | Correct typo (#976) | Angus Hollands | 2017-04-03 | 1 | -1/+1 |
| | |||||
* | Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() | Serhiy Storchaka | 2017-01-22 | 1 | -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 Krah | 2017-01-09 | 1 | -4/+4 |
| | | | | so let's defer this until 3.7, 3.8, ... all have this new function. | ||||
* | Merge 3.6. | Stefan Krah | 2017-01-09 | 1 | -7/+7 |
|\ | |||||
| * | Merge 3.5. | Stefan Krah | 2017-01-09 | 1 | -7/+7 |
| |\ | |||||
| | * | Issue #28701: Revert part of 5bdc8e1a50c8 for the following reasons: | Stefan Krah | 2017-01-09 | 1 | -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 causes | Stefan Krah | 2017-01-07 | 1 | -1/+1 |
| | | | | | | | | | | | | maintenance issues (cost/benefit). | ||||
* | | | Revert (unauthorized) parts of 54a89144ee1d which are not in a speed-sensitive | Stefan Krah | 2017-01-07 | 1 | -4/+4 |
| | | | | | | | | | | | | path in order to avoid maintenance issues. | ||||
* | | | Revert (unauthorized) parts of b9eb35435178 which are not in a speed-sensitive | Stefan Krah | 2017-01-07 | 1 | -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 Storchaka | 2016-12-16 | 1 | -1/+1 |
| | | | | | | | | | | | | dict. | ||||
* | | | Don't parenthesis in _PyObject_CallMethodId() format | Victor Stinner | 2016-12-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | Issue #28915: Without parenthesis, _PyObject_CallMethodId() avoids the creation a temporary tuple, and so is more efficient. | ||||
* | | | Use _PyObject_CallNoArg() | Victor Stinner | 2016-12-06 | 1 | -8/+8 |
|/ / | | | | | | | | | | | | | Replace: PyObject_CallObject(callable, NULL) with: _PyObject_CallNoArg(callable) | ||||
* | | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -7/+7 |
|\ \ | |/ | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -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 Cannon | 2016-09-09 | 1 | -4/+8 |
| | | | | | | | | Thanks to Georg Brandl for the patch. | ||||
* | | 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 |
| |