Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-35081: Add pycore_ prefix to internal header files (GH-10263) | Victor Stinner | 2018-10-31 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | * Rename Include/internal/ header files: * pyatomic.h -> pycore_atomic.h * ceval.h -> pycore_ceval.h * condvar.h -> pycore_condvar.h * context.h -> pycore_context.h * pygetopt.h -> pycore_getopt.h * gil.h -> pycore_gil.h * hamt.h -> pycore_hamt.h * hash.h -> pycore_hash.h * mem.h -> pycore_mem.h * pystate.h -> pycore_state.h * warnings.h -> pycore_warnings.h * PCbuild project, Makefile.pre.in, Modules/Setup: add the Include/internal/ directory to the search paths of header files. * Update includes. For example, replace #include "internal/mem.h" with #include "pycore_mem.h". | ||||
* | bpo-34573: Simplify __reduce__() of set and dict iterators. (GH-9050) | Sergey Fedoseev | 2018-10-20 | 1 | -25/+3 |
| | | | | Simplify the pickling of set and dictionary objects iterators by consuming the iterator into a list with PySequence_List. | ||||
* | bpo-1621: Avoid signed integer overflow in set_table_resize(). (GH-9059) | Sergey Fedoseev | 2018-09-11 | 1 | -8/+3 |
| | | | | | | | | Address a C undefined behavior signed integer overflow issue in set object table resizing. Our -fwrapv compiler flag and practical reasons why sets are unlikely to get this large should mean this was never an issue but it was incorrect code that generates code analysis warnings. <!-- issue-number: [bpo-1621](https://www.bugs.python.org/issue1621) --> https://bugs.python.org/issue1621 <!-- /issue-number --> | ||||
* | bpo-33391: Fix refleak in set_symmetric_difference (GH-6670) | lekma | 2018-05-02 | 1 | -1/+3 |
| | |||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. ↵ | Siddhesh Poyarekar | 2018-04-29 | 1 | -20/+20 |
| | | | | | | | | | (GH-6030) METH_NOARGS functions need only a single argument but they are cast into a PyCFunction, which takes two arguments. This triggers an invalid function cast warning in gcc8 due to the argument mismatch. Fix this by adding a dummy unused argument. | ||||
* | Removed unnecesssary bit inversion which doesn't improve dispersion ↵ | Raymond Hettinger | 2018-01-18 | 1 | -1/+1 |
| | | | | statistics (#5235) | ||||
* | bpo-26163: Frozenset hash improvement (#5194) | Raymond Hettinger | 2018-01-16 | 1 | -0/+1 |
| | |||||
* | bpo-29476: Simplify set_add_entry() (#5175) | Raymond Hettinger | 2018-01-14 | 1 | -2/+2 |
| | |||||
* | bpo-31462: Remove trailing whitespaces. (#3564) | Serhiy Storchaka | 2017-09-14 | 1 | -1/+1 |
| | |||||
* | 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). | ||||
* | Revert "bpo-30860: Consolidate stateful runtime globals." (#3379) | Eric Snow | 2017-09-06 | 1 | -1/+0 |
| | | | Windows buildbots started failing due to include-related errors. | ||||
* | bpo-30860: Consolidate stateful runtime globals. (#2594) | Eric Snow | 2017-09-06 | 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). | ||||
* | Fix terminology in comment and add more design rationale. (#3335) | Raymond Hettinger | 2017-09-05 | 1 | -3/+10 |
| | | | | | | * Fix terminology in comment and add more design rationale. * Fix extra space | ||||
* | bpo-31095: fix potential crash during GC (GH-2974) | INADA Naoki | 2017-08-24 | 1 | -0/+3 |
| | |||||
* | bpo-30592: Fixed error messages for some builtins. (#1996) | Serhiy Storchaka | 2017-06-08 | 1 | -2/+2 |
| | | | | | Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534. | ||||
* | bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096) | Serhiy Storchaka | 2017-04-19 | 1 | -3/+9 |
| | | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate. | ||||
* | bpo-29949: Fix set memory usage regression (GH-943) | INADA Naoki | 2017-04-01 | 1 | -6/+5 |
| | | | | | Revert "Minor factoring: move redundant resize scaling logic into the resize function." This reverts commit 4897300276d870f99459c82b937f0ac22450f0b6. | ||||
* | Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() and | Serhiy Storchaka | 2017-02-06 | 1 | -3/+2 |
| | | | | _PyArg_NoPositional() now are macros. | ||||
* | Reduce load factor (from 66% to 60%) to improve effectiveness of linear probing. | Raymond Hettinger | 2017-02-04 | 1 | -3/+3 |
| | | | | | | | Decreased density gives better collision statistics (average of 2.5 probes in a full table versus 3.0 previously) and fewer occurences of starting a second possibly overlapping sequence of 10 linear probes. Makes resizes a little more frequent but each with less work (fewer insertions and fewer collisions). | ||||
* | Remove unnecessary variables. | Raymond Hettinger | 2017-02-02 | 1 | -5/+2 |
| | | | | | * so->used never gets changed during a resize * so->filled only changes when dummies are present and being eliminated | ||||
* | Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of ↵ | Serhiy Storchaka | 2016-12-16 | 1 | -1/+1 |
| | | | | dict. | ||||
* | Added the const qualifier to char* variables that refer to readonly internal | Serhiy Storchaka | 2016-11-20 | 1 | -1/+1 |
| | | | | UTF-8 represenatation of Unicode objects. | ||||
* | Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize | Serhiy Storchaka | 2016-11-20 | 1 | -1/+1 |
| | | | | with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize. | ||||
* | Issue #28071: Add early-out for differencing from an empty set. | Raymond Hettinger | 2016-09-12 | 1 | -0/+8 |
| | |||||
* | Removed unused initialization and the uninteresting comment. | Raymond Hettinger | 2016-04-29 | 1 | -2/+1 |
| | |||||
* | Issue #26880: Removed redundant checks in set.__init__. | Serhiy Storchaka | 2016-04-29 | 1 | -3/+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. | ||||
* | | Moved misplaced functions to the section for C API functions. | Raymond Hettinger | 2016-03-27 | 1 | -12/+12 |
| | | |||||
* | | Responsibility for argument checking belongs in set.__init__() rather than ↵ | Raymond Hettinger | 2016-03-26 | 1 | -3/+0 |
| | | | | | | | | | | | | | | set.__new__(). See dict.__new__() and list.__new__() for comparison. Neither of those examine or touch args or kwds. That work is done in the __init__() methods. | ||||
* | | Speed-up construction of empty sets by approx 12-14%. | Raymond Hettinger | 2016-03-25 | 1 | -2/+3 |
| | | |||||
* | | Add early-out for the common case where kwds is NULL (gives 1.1% speedup). | Raymond Hettinger | 2016-02-04 | 1 | -2/+3 |
| | | |||||
* | | merge 3.5 | Benjamin Peterson | 2016-01-01 | 1 | -3/+0 |
|\ \ | |/ | |||||
| * | merge 3.4 | Benjamin Peterson | 2016-01-01 | 1 | -3/+0 |
| |\ | |||||
| | * | merge 3.3 | Benjamin Peterson | 2016-01-01 | 1 | -3/+0 |
| | |\ | |||||
| | | * | remove some copyright notices supserseded by the toplevel ones | Benjamin Peterson | 2016-01-01 | 1 | -3/+0 |
| | | | | |||||
| | | * | Silence compiler warning for an unused declaration | Raymond Hettinger | 2013-08-04 | 1 | -1/+0 |
| | | | | |||||
* | | | | 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. | ||||
| * | | | 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. | ||||
* | | | | Minor tweek. Counting down rather than up reduces register pressure. | Raymond Hettinger | 2015-12-15 | 1 | -1/+1 |
| | | | | |||||
* | | | | Undo inadvertent line swap | Raymond Hettinger | 2015-12-14 | 1 | -1/+1 |
| | | | | |||||
* | | | | Hoist constant expressions (so->table and so->mask) out of the inner-loop. | Raymond Hettinger | 2015-12-14 | 1 | -12/+12 |
| | | | | |||||
* | | | | Add assertion to verify the pre-condition in the comments. | Raymond Hettinger | 2015-11-18 | 1 | -0/+1 |
| | | | | |||||
* | | | | Issue #25629: Move set fill/used updates out of inner loop | Raymond Hettinger | 2015-11-17 | 1 | -7/+8 |
| | | | | |||||
* | | | | Move the active entry multiplication to later in the hash calculation | Raymond Hettinger | 2015-08-07 | 1 | -4/+4 |
| | | | | |||||
* | | | | Restore frozenset hash caching removed in cf707dd190a9 | Raymond Hettinger | 2015-08-07 | 1 | -0/+3 |
| | | | | |||||
* | | | | Fix comment typo | Raymond Hettinger | 2015-08-01 | 1 | -1/+1 |
| | | | | |||||
* | | | | Tweak the comments | Raymond Hettinger | 2015-08-01 | 1 | -1/+3 |
| | | | | |||||
* | | | | Issue #24762: Speed-up frozenset_hash() and greatly beef-up the comments. | Raymond Hettinger | 2015-08-01 | 1 | -27/+43 |
| | | | | |||||
* | | | | Issue #24681: Move the most likely test first in set_add_entry(). | Raymond Hettinger | 2015-07-31 | 1 | -6/+9 |
| | | | |