Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #22896: Fixed using _getbuffer() in recently added _PyBytes_Format(). | Serhiy Storchaka | 2015-02-02 | 1 | -3/+2 |
| | |||||
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() | Serhiy Storchaka | 2015-02-02 | 8 | -304/+282 |
|\ | | | | | | | and PyObject_AsWriteBuffer(). | ||||
| * | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() | Serhiy Storchaka | 2015-02-02 | 8 | -244/+189 |
| | | | | | | | | and PyObject_AsWriteBuffer(). | ||||
* | | Issue 23359: Tighten inner search loop for sets (don't and-mask every entry ↵ | Raymond Hettinger | 2015-02-02 | 1 | -24/+53 |
| | | | | | | | | lookup). | ||||
* | | Merge from 3.4. | Stefan Krah | 2015-02-01 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Issue #23370: Fix off-by-one error for non-contiguous buffers. | Stefan Krah | 2015-02-01 | 1 | -2/+2 |
| | | |||||
* | | Issue #22445: PyBuffer_IsContiguous() now implements precise contiguity | Stefan Krah | 2015-02-01 | 1 | -12/+37 |
| | | | | | | | | | | tests, compatible with NumPy's NPY_RELAXED_STRIDES_CHECKING compilation flag. Previously the function reported false negatives for corner cases. | ||||
* | | Keep the definition of i consistent between set_lookkey() and ↵ | Raymond Hettinger | 2015-01-31 | 1 | -4/+4 |
| | | | | | | | | set_insert_clean(). | ||||
* | | Minor tweak to improve code clarity. | Raymond Hettinger | 2015-01-31 | 1 | -1/+1 |
| | | |||||
* | | Fix typo in a comment. | Raymond Hettinger | 2015-01-31 | 1 | -1/+1 |
| | | |||||
* | | allow changing __class__ between a heaptype and non-heaptype in some cases ↵ | Benjamin Peterson | 2015-01-30 | 1 | -26/+37 |
| | | | | | | | | | | | | (closes #22986) Patch by Nathaniel Smith. | ||||
* | | Closes #22668: Merge from 3.4. | Stefan Krah | 2015-01-29 | 1 | -4/+52 |
|\ \ | |/ | |||||
| * | Issue #22668: Ensure that format strings survive slicing after casting. | Stefan Krah | 2015-01-29 | 1 | -4/+52 |
| | | |||||
* | | Issue #22079: PyType_Ready() now checks that statically allocated type has | Serhiy Storchaka | 2015-01-28 | 1 | -0/+14 |
|\ \ | |/ | | | | | no dynamically allocated bases. | ||||
| * | Issue #22079: PyType_Ready() now checks that statically allocated type has | Serhiy Storchaka | 2015-01-28 | 1 | -0/+14 |
| | | | | | | | | no dynamically allocated bases. | ||||
* | | Revert unintended part of the commit (the key==dummy test wasn't supposed to ↵ | Raymond Hettinger | 2015-01-27 | 1 | -6/+2 |
| | | | | | | | | change). | ||||
* | | Remove unneeded dummy test from the set search loop (when the hashes match ↵ | Raymond Hettinger | 2015-01-27 | 1 | -4/+11 |
| | | | | | | | | we know the key is not a dummy). | ||||
* | | Issue #23269: Tighten search_loop in set_insert_clean() | Raymond Hettinger | 2015-01-27 | 1 | -6/+17 |
| | | | | | | | | | | Instead of masking and shifting every loopup, move the wrap-around test outside of the inner-loop. | ||||
* | | Issue #20284: Fix a compilation warning on Windows | Victor Stinner | 2015-01-26 | 1 | -1/+1 |
| | | | | | | | | Explicitly cast the long to char. | ||||
* | | Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() and | Victor Stinner | 2015-01-26 | 1 | -4/+5 |
| | | | | | | | | | | | | PyUnicode_EncodeCodePage() now raise an exception if the object is not an Unicode object. For PyUnicode_EncodeFSDefault(), it was already the case on platforms other than Windows. Patch written by Campbell Barton. | ||||
* | | ensure ilen is initialized when it is assigned to len | Benjamin Peterson | 2015-01-26 | 1 | -1/+1 |
| | | |||||
* | | Issue #21408: The default __ne__() now returns NotImplemented if __eq__() | Serhiy Storchaka | 2015-01-26 | 1 | -2/+7 |
|\ \ | |/ | | | | | returned NotImplemented. Removed incorrect implementations of __ne__(). | ||||
| * | Issue #21408: The default __ne__() now returns NotImplemented if __eq__() | Serhiy Storchaka | 2015-01-26 | 1 | -2/+7 |
| | | | | | | | | returned NotImplemented. Removed incorrect implementations of __ne__(). | ||||
* | | Set the hash values of dummy entries to -1. Improves quality of entry->hash ↵ | Raymond Hettinger | 2015-01-26 | 1 | -0/+2 |
| | | | | | | | | == hash tests. | ||||
* | | Update out-of-date comments. | Raymond Hettinger | 2015-01-26 | 1 | -5/+3 |
| | | |||||
* | | Issue #23119: Simplify setobject by inlining the special case for unicode ↵ | Raymond Hettinger | 2015-01-26 | 1 | -70/+11 |
| | | | | | | | | equality testing. | ||||
* | | Issue #23321: Fixed a crash in str.decode() when error handler returned | Serhiy Storchaka | 2015-01-25 | 1 | -2/+6 |
|\ \ | |/ | | | | | replacment string longer than mailformed input data. | ||||
| * | Issue #23321: Fixed a crash in str.decode() when error handler returned | Serhiy Storchaka | 2015-01-25 | 1 | -2/+6 |
| | | | | | | | | replacment string longer than mailformed input data. | ||||
* | | Issue20284: Implement PEP461 | Ethan Furman | 2015-01-24 | 4 | -17/+700 |
| | | |||||
* | | A hybrid of and-masking and a conditional-set-to-zero produce even faster ↵ | Raymond Hettinger | 2015-01-19 | 1 | -1/+2 |
| | | | | | | | | search loop. | ||||
* | | Update copyright for 2015 updates. | Raymond Hettinger | 2015-01-19 | 1 | -1/+1 |
| | | |||||
* | | Clean-up, simplify, and slightly speed-up bounds logic in set_pop(). | Raymond Hettinger | 2015-01-19 | 1 | -10/+3 |
| | | | | | | | | | | | | | | Elsewhere in the setobject.c code we do a bitwise-and with the mask instead of using a conditional to reset to zero on wrap-around. Using that same technique here use gives cleaner, faster, and more consistent code. | ||||
* | | Issue 23261: Clean-up the hack to store the set.pop() search finger in a ↵ | Raymond Hettinger | 2015-01-18 | 1 | -21/+12 |
| | | | | | | | | hash field instead of the setobject. | ||||
* | | Issue #23181: More "codepoint" -> "code point". | Serhiy Storchaka | 2015-01-18 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Issue #23181: More "codepoint" -> "code point". | Serhiy Storchaka | 2015-01-18 | 1 | -2/+2 |
| | | |||||
* | | merge 3.4 (#23210) | Benjamin Peterson | 2015-01-09 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | remove buzzword (closes #23210) | Benjamin Peterson | 2015-01-09 | 1 | -1/+1 |
| | | |||||
* | | Small clean-up. Factor-out common code for add, contains, and discard ↵ | Raymond Hettinger | 2014-12-27 | 1 | -43/+27 |
| | | | | | | | | function pairs. | ||||
* | | Issue #23107: Tighten-up loops in setobject.c | Raymond Hettinger | 2014-12-27 | 1 | -55/+46 |
| | | | | | | | | | | | | * Move the test for an exact key match to after a hash match * Use "used" as a loop counter instead of "fill" * Minor improvements to variable names and code consistency | ||||
* | | Issue #22783: Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX | Serhiy Storchaka | 2014-12-16 | 1 | -98/+62 |
| | | | | | | | | opcode if possible. | ||||
* | | Issue #22581: Use more "bytes-like object" throughout the docs and comments. | Serhiy Storchaka | 2014-12-05 | 2 | -5/+4 |
|\ \ | |/ | |||||
| * | Issue #22581: Use more "bytes-like object" throughout the docs and comments. | Serhiy Storchaka | 2014-12-05 | 2 | -5/+4 |
| | | |||||
* | | Issue #20335: bytes constructor now raises TypeError when encoding or errors | Serhiy Storchaka | 2014-12-02 | 1 | -7/+7 |
|\ \ | |/ | | | | | is specified with non-string argument. Based on patch by Renaud Blanch. | ||||
| * | Issue #20335: bytes constructor now raises TypeError when encoding or errors | Serhiy Storchaka | 2014-12-02 | 1 | -7/+7 |
| | | | | | | | | is specified with non-string argument. Based on patch by Renaud Blanch. | ||||
* | | Issue #22975: Close block at right place. | Serhiy Storchaka | 2014-12-01 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #22975: Close block at right place. | Serhiy Storchaka | 2014-12-01 | 1 | -1/+1 |
| | | |||||
* | | merge 3.4 (#22954) | Benjamin Peterson | 2014-11-27 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | remove tautological condition (closes #22954) | Benjamin Peterson | 2014-11-27 | 1 | -1/+1 |
| | | |||||
* | | Issue #22869: Split pythonrun into two modules | Nick Coghlan | 2014-11-20 | 1 | -0/+16 |
| | | | | | | | | | | | | | | - interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags | ||||
* | | Issue #20948: Inline makefmt() in unicode_fromformat_arg() | Victor Stinner | 2014-11-18 | 1 | -44/+9 |
| | |