Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-32746: Fix multiple typos (GH-5144) | Leo Arias | 2018-02-04 | 1 | -1/+1 |
| | | | Fix typos found by codespell in docs, docstrings, and comments. | ||||
* | bpo-32137: The repr of deeply nested dict now raises a RecursionError (#4570) | Serhiy Storchaka | 2017-12-03 | 1 | -3/+0 |
| | | | | | instead of crashing due to a stack overflow. This perhaps will fix similar problems in other extension types. | ||||
* | bpo-32030: Add more options to _PyCoreConfig (#4485) | Victor Stinner | 2017-11-21 | 1 | -8/+3 |
| | | | | | | Py_Main() now handles two more -X options: * -X showrefcount: new _PyCoreConfig.show_ref_count field * -X showalloccount: new _PyCoreConfig.show_alloc_count field | ||||
* | bpo-23699: Use a macro to reduce boilerplate code in rich comparison ↵ | stratakis | 2017-11-02 | 1 | -17/+1 |
| | | | | functions (GH-793) | ||||
* | bpo-30860: Consolidate stateful runtime globals. (#3397) | Eric Snow | 2017-09-08 | 1 | -0/+1 |
| | | | | | | | * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py). | ||||
* | Expand the PySlice_GetIndicesEx macro. (#1023) | Serhiy Storchaka | 2017-04-08 | 1 | -3/+3 |
| | |||||
* | bpo-29935: Fixed error messages in the index() method of tuple, list and ↵ | Serhiy Storchaka | 2017-03-30 | 1 | -3/+3 |
| | | | | | deque (#887) when pass indices of wrong type. | ||||
* | bpo-20186: Convert tuple object implementation to Argument Clinic. (#614) | Serhiy Storchaka | 2017-03-19 | 1 | -46/+74 |
| | |||||
* | bpo-29737: Optimize concatenating with empty tuple. (#524) | Serhiy Storchaka | 2017-03-06 | 1 | -0/+8 |
| | |||||
* | bpo-29695: Remove bad keyword parameters in int(), bool(), float(), list() ↵ | Serhiy Storchaka | 2017-03-06 | 1 | -8/+3 |
| | | | | and tuple(). (#518) | ||||
* | bpo-29695: Deprecated using bad named keyword arguments in builtings: (#486) | Serhiy Storchaka | 2017-03-05 | 1 | -0/+6 |
| | | | | int(), bool(), float(), list() and tuple(). Specify the value as a positional argument instead. | ||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -4/+2 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Issue #1621: Avoid signed overflow in list and tuple operations | Martin Panter | 2016-07-25 | 1 | -2/+2 |
| | | | | Patch by Xiang Zhang. | ||||
* | Issue #23034: The output of a special Python build with defined COUNT_ALLOCS, | Serhiy Storchaka | 2016-07-03 | 1 | -0/+10 |
| | | | | | | SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by default. It can be re-enabled using the "-X showalloccount" option. It now outputs to stderr instead of stdout. | ||||
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
|\ | |||||
* \ | Issue #26494: Fixed crash on iterating exhausting iterators. | Serhiy Storchaka | 2016-03-30 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. | ||||
| * | Issue #26494: Fixed crash on iterating exhausting iterators. | Serhiy Storchaka | 2016-03-30 | 1 | -1/+1 |
| | | | | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. | ||||
* | | Issue #20440: Cleaning up the code by using Py_SETREF and Py_CLEAR. | Serhiy Storchaka | 2015-12-27 | 1 | -4/+1 |
|/ | | | | | Old code is correct, but with Py_SETREF and Py_CLEAR it can be cleaner. This patch doesn't fix bugs and hence there is no need to backport it. | ||||
* | Issue #23629: Fix the default __sizeof__ implementation for variable-sized ↵ | Antoine Pitrou | 2015-03-10 | 1 | -12/+0 |
|\ | | | | | | | objects. | ||||
| * | Issue #23629: Fix the default __sizeof__ implementation for variable-sized ↵ | Antoine Pitrou | 2015-03-10 | 1 | -12/+0 |
| | | | | | | | | objects. | ||||
* | | Issue #22207: Fix "comparison between signed and unsigned integers" warning in | Victor Stinner | 2014-08-17 | 1 | -1/+1 |
| | | | | | | | | | | test checking for integer overflow on Py_ssize_t type: cast explicitly to size_t. | ||||
* | | Issue #22077: Improve index error messages for bytearrays, bytes, lists, and | Terry Jan Reedy | 2014-08-02 | 1 | -1/+1 |
|/ | | | | | tuples by adding 'or slices'. Added ', not <typename' for bytearrays. Original patch by Claudiu Popa. | ||||
* | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 1 | -2/+2 |
|\ | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | ||||
| * | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 1 | -2/+2 |
| | | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | ||||
* | | Issue #20437: Fixed 22 potential bugs when deleting objects references. | Serhiy Storchaka | 2014-02-09 | 1 | -4/+2 |
|\ \ | |/ | |||||
| * | Issue #20437: Fixed 21 potential bugs when deleting objects references. | Serhiy Storchaka | 2014-02-09 | 1 | -4/+2 |
| | | |||||
* | | Issue #19513: repr(tuple) now uses _PyUnicodeWriter for better performances | Victor Stinner | 2013-11-19 | 1 | -27/+37 |
| | | |||||
* | | Issue #18722: Remove uses of the "register" keyword in C code. | Antoine Pitrou | 2013-08-13 | 1 | -24/+24 |
| | | |||||
* | | Issue #9566: More long/Py_ssize_t fixes in tuple and list iterators (it_index) | Victor Stinner | 2013-06-24 | 1 | -2/+2 |
| | | |||||
* | | Issue #9566: Fix a compiler warning in tupleiter_setstate() on Windows x64 | Victor Stinner | 2013-06-24 | 1 | -1/+1 |
| | | |||||
* | | Issuse #17932: Fix an integer overflow issue on Windows 64-bit in tuple | Victor Stinner | 2013-06-04 | 1 | -1/+1 |
| | | | | | | | | | | iterators: change the C type of tupleiterobject.it_index from long to Py_ssize_t. | ||||
* | | Add a comment about *not* caching the hash value. Issue #9685 suggested to ↵ | Christian Heimes | 2013-01-07 | 1 | -0/+3 |
|/ | | | | memorize the hash value, but the feature request was rejected because no speed ups were found. | ||||
* | Fix the internals of our hash functions to used unsigned values during hash | Gregory P. Smith | 2012-12-11 | 1 | -4/+4 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. NOTE: This change is smaller compared to 3.2 as much of this cleanup had already been done. I added the comment that my change in 3.2 added so that the code would match up. Otherwise this just adds or synchronizes appropriate UL designations on some constants to be pedantic. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change. | ||||
| * | Fix the internals of our hash functions to used unsigned values during hash | Gregory P. Smith | 2012-12-11 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change. | ||||
* | | Issue #16096: Fix several occurrences of potential signed integer overflow. ↵ | Mark Dickinson | 2012-10-06 | 1 | -8/+4 |
| | | | | | | | | Thanks Serhiy Storchaka. | ||||
* | | PyTuple_Pack() was missing va_end() in its error branch which lead to a ↵ | Christian Heimes | 2012-09-10 | 1 | -1/+3 |
|\ \ | |/ | | | | | resource leak. | ||||
| * | PyTuple_Pack() was missing va_end() in its error branch which lead to a ↵ | Christian Heimes | 2012-09-10 | 1 | -1/+3 |
| | | | | | | | | resource leak. | ||||
* | | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵ | David Malcolm | 2012-06-22 | 1 | -0/+16 |
| | | | | | | | | allocation issues | ||||
* | | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵ | Antoine Pitrou | 2012-04-04 | 1 | -2/+2 |
| | | | | | | | | the stable ABI. | ||||
* | | Issue #14288: Serialization support for builtin iterators. | Kristján Valur Jónsson | 2012-04-03 | 1 | -0/+31 |
| | | |||||
* | | Issue #14387: Do not include accu.h from Python.h. | Antoine Pitrou | 2012-03-22 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Issue #14387: Do not include accu.h from Python.h. | Antoine Pitrou | 2012-03-22 | 1 | -0/+1 |
| | | |||||
* | | Consolidate the occurrances of the prime used as the multiplier when hashing. | Gregory P. Smith | 2012-01-14 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Consolidate the occurrances of the prime used as the multiplier when hashing | Gregory P. Smith | 2012-01-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | to a single #define instead of having several copies in several files. This excludes the Modules/ tree (datetime and expat both have a copy for their own purposes with no need for it to be the same). | ||||
* | | Revert "Accept None as start and stop parameters for list.index() and ↵ | Petri Lehtinen | 2011-11-06 | 1 | -11/+4 |
|\ \ | |/ | | | | | | | | | tuple.index()" Issue #13340. | ||||
| * | Revert "Accept None as start and stop parameters for list.index() and ↵ | Petri Lehtinen | 2011-11-06 | 1 | -11/+4 |
| | | | | | | | | | | | | tuple.index()" Issue #13340. | ||||
* | | Accept None as start and stop parameters for list.index() and tuple.index(). | Petri Lehtinen | 2011-11-05 | 1 | -4/+11 |
|\ \ | |/ | | | | | Closes #13340. | ||||
| * | Accept None as start and stop parameters for list.index() and tuple.index() | Petri Lehtinen | 2011-11-05 | 1 | -4/+11 |
| | | | | | | | | Closes #13340. | ||||
* | | Issue #12911: Fix memory consumption when calculating the repr() of huge ↵ | Antoine Pitrou | 2011-10-06 | 1 | -39/+36 |
|\ \ | |/ | | | | | | | | | | | tuples or lists. This introduces a small private API for this common pattern. The issue has been discovered thanks to Martin's huge-mem buildbot. | ||||
| * | Issue #12911: Fix memory consumption when calculating the repr() of huge ↵ | Antoine Pitrou | 2011-10-06 | 1 | -39/+36 |
| | | | | | | | | | | | | | | tuples or lists. This introduces a small private API for this common pattern. The issue has been discovered thanks to Martin's huge-mem buildbot. |