Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #24912: Prevent __class__ assignment to immutable built-in objects. ↵ | Guido van Rossum | 2015-09-05 | 1 | -0/+59 |
|\ | | | | | | | (Merge 3.5 -> 3.6) | ||||
| * | Issue #24912: Prevent __class__ assignment to immutable built-in objects. ↵ | Guido van Rossum | 2015-09-05 | 1 | -0/+59 |
| |\ | | | | | | | | | | (Merge 3.5.0 -> 3.5) | ||||
| | * | Issue #24912: Prevent __class__ assignment to immutable built-in objects. | Guido van Rossum | 2015-09-04 | 1 | -0/+59 |
| | | | |||||
* | | | Merge 3.5 (odict) | Victor Stinner | 2015-09-03 | 1 | -18/+22 |
|\ \ \ | |/ / | |||||
| * | | Issue #24992: Fix error handling and a race condition (related to garbage | Victor Stinner | 2015-09-03 | 1 | -18/+22 |
| |/ | | | | | | | | | | | collection) in collections.OrderedDict constructor. Patch reviewed by Serhiy Storchaka. | ||||
* | | type_call() now detect bugs in type new and init | Victor Stinner | 2015-09-03 | 1 | -19/+27 |
| | | | | | | | | | | | | | | | | | | * Call _Py_CheckFunctionResult() to check for bugs in type constructors (tp_new) * Add assertions to ensure an exception was raised if tp_init failed or that no exception was raised if tp_init succeed Refactor also the function to have less indentation. | ||||
* | | Fixed an incorrect comment. | Eric V. Smith | 2015-08-26 | 1 | -1/+1 |
| | | |||||
* | | Merge #15944. | Stefan Krah | 2015-08-08 | 1 | -8/+2 |
|\ \ | |/ | |||||
| * | Issue #15944: memoryview: Allow arbitrary formats when casting to bytes. | Stefan Krah | 2015-08-08 | 1 | -8/+2 |
| | | | | | | | | Original patch by Martin Panter. | ||||
* | | Merge from 3.5 (issue #24667). | Eric Snow | 2015-08-07 | 1 | -7/+10 |
|\ \ | |/ | |||||
| * | Issue #24667: Resize odict in all cases that the underlying dict resizes. | Eric Snow | 2015-08-07 | 1 | -7/+10 |
| | | |||||
* | | Fix typo in comment. | Eric V. Smith | 2015-08-07 | 1 | -1/+1 |
| | | |||||
* | | 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-06 | 1 | -0/+3 |
| | | |||||
* | | Closes #21279: Merge with 3.5 | Zachary Ware | 2015-08-06 | 1 | -5/+6 |
|\ \ | |/ | |||||
| * | Issue #21279: Merge with 3.4 | Zachary Ware | 2015-08-06 | 1 | -5/+6 |
| |\ | |||||
| | * | Issue #21279: Flesh out str.translate docs | Zachary Ware | 2015-08-05 | 1 | -5/+6 |
| | | | | | | | | | | | | Initial patch by Kinga Farkas, Martin Panter, and John Posner. | ||||
* | | | 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 |
| | | | |||||
* | | | Issue #24681: Move the store of so->table to the code block where it is used. | Raymond Hettinger | 2015-07-23 | 1 | -7/+10 |
| | | | |||||
* | | | Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind() | Serhiy Storchaka | 2015-07-20 | 2 | -6/+14 |
|\ \ \ | |/ / | | | | | | | for single-byte argument on Linux. | ||||
| * | | Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind() | Serhiy Storchaka | 2015-07-20 | 2 | -6/+14 |
| | | | | | | | | | | | | for single-byte argument on Linux. | ||||
* | | | Issue #24583: Consolidate previous set object updates into a single function | Raymond Hettinger | 2015-07-20 | 1 | -19/+20 |
| | | | | | | | | | | | | | | | | | | with a single entry point, named exit points at the bottom, more self-evident refcount adjustments, and a comment describing why the pre-increment was necessary at all. | ||||
* | | | Issue #24583: Fix refcount leak. | Raymond Hettinger | 2015-07-20 | 1 | -1/+5 |
| | | | |||||
* | | | Issue #24583: Fix crash when set is mutated while being updated. | Raymond Hettinger | 2015-07-15 | 1 | -5/+13 |
| | | | |||||
* | | | merge | Raymond Hettinger | 2015-07-15 | 1 | -1/+2 |
|\ \ \ | |/ / | |||||
| * | | Issue #24583: Fix crash when set is mutated while being updated. | Raymond Hettinger | 2015-07-15 | 1 | -1/+2 |
| | | | |||||
* | | | Neaten-up a little bit. | Raymond Hettinger | 2015-07-08 | 1 | -3/+3 |
| | | | |||||
* | | | Issue 24581: Revert c9782a9ac031 pending a stronger test for mutation during ↵ | Raymond Hettinger | 2015-07-07 | 1 | -13/+22 |
| | | | | | | | | | | | | iteration. | ||||
* | | | Minor bit of factoring-out common code. | Raymond Hettinger | 2015-07-06 | 1 | -18/+11 |
| | | | |||||
* | | | Tighten-up code in the set iterator to use an entry pointer rather than ↵ | Raymond Hettinger | 2015-07-06 | 1 | -22/+13 |
| | | | | | | | | | | | | indexing. | ||||
* | | | Tighten-up code in set_next() to use an entry pointer rather than indexing. | Raymond Hettinger | 2015-07-06 | 1 | -5/+7 |
| | | | |||||
* | | | Bring related functions add/contains/discard together in the code. | Raymond Hettinger | 2015-07-05 | 1 | -40/+34 |
| | | | |||||
* | | | Change add/contains/discard calls to pass the key and hash instead of an ↵ | Raymond Hettinger | 2015-07-05 | 1 | -52/+42 |
| | | | | | | | | | | | | entry struct. | ||||
* | | | Clean-up call patterns for add/contains/discard to better match the caller's ↵ | Raymond Hettinger | 2015-07-05 | 1 | -36/+33 |
| | | | | | | | | | | | | needs. | ||||
* | | | merge heads | Benjamin Peterson | 2015-07-04 | 2 | -77/+64 |
|\ \ \ | |||||
| * | | | Make the unicode equality test an external function rather than in-lining it. | Raymond Hettinger | 2015-07-04 | 2 | -5/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The real benefit of the unicode specialized function comes from bypassing the overhead of PyObject_RichCompareBool() and not from being in-lined (especially since there was almost no shared data between the caller and callee). Also, the in-lining was having a negative effect on code generation for the callee. | ||||
| * | | | Make sure the dummy percentage calculation won't overflow. | Raymond Hettinger | 2015-07-04 | 1 | -2/+2 |
| | | | | |||||
| * | | | Minor cleanup. | Raymond Hettinger | 2015-07-04 | 1 | -2/+2 |
| | | | | |||||
| * | | | Minor nit: Make the style of checking error return values more consistent. | Raymond Hettinger | 2015-07-03 | 1 | -16/+16 |
| | | | | |||||
| * | | | Minor factoring: move redundant resize scaling logic into the resize function. | Raymond Hettinger | 2015-07-03 | 1 | -4/+5 |
| | | | | |||||
| * | | | Call set_lookkey() directly to avoid unnecessary memory spills and reloads. | Raymond Hettinger | 2015-07-03 | 1 | -4/+5 |
| | | | | |||||
| * | | | Move insertion resize logic into set_insert_key(). | Raymond Hettinger | 2015-07-03 | 1 | -45/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simplifies the code a little bit and does the resize check only when a new key is added (giving a small speed up in the case where the key already exists). Fixes possible bug in set_merge() where the set_insert_key() call relies on a big resize at the start to make enough room for the keys but is vulnerable to a comparision callback that could cause the table to shrink in the middle of the merge. Also, changed the resize threshold from two-thirds of the mask+1 to just two-thirds. The plus one offset gave no real benefit (afterall, the two-thirds mark is just a heuristic and isn't a precise cut-off). | ||||
* | | | | merge 3.5 (#24407) | Benjamin Peterson | 2015-07-04 | 1 | -7/+19 |
|\ \ \ \ | |/ / / |/| / / | |/ / | |||||
| * | | merge 3.4 (#24407) | Benjamin Peterson | 2015-07-04 | 1 | -7/+19 |
| |\ \ | | |/ | |||||
| | * | merge 3.3 (#24407) | Benjamin Peterson | 2015-07-04 | 1 | -7/+19 |
| | |\ | |||||
| | | * | protect against mutation of the dict during insertion (closes #24407) | Benjamin Peterson | 2015-07-04 | 1 | -7/+19 |
| | | | | |||||
* | | | | Merge 3.5 (Issue #19235) | Yury Selivanov | 2015-07-03 | 2 | -7/+14 |
|\ \ \ \ | |/ / / |