summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21293: Remove unnecessary "capsule hack".Larry Hastings2015-03-021-3/+0
|
* Issue #23451: Update pyconfig.h for Windows to require Vista headers and ↵Steve Dower2015-03-021-18/+1
| | | | remove unnecessary version checks.
* Fixed a typo.Serhiy Storchaka2015-03-011-1/+1
|
* Issue #20204: Deprecation warning is now raised for builtin type without theSerhiy Storchaka2015-03-011-0/+6
| | | | __module__ attribute.
* merge 3.4 (#23515)Benjamin Peterson2015-02-251-1/+2
|\
| * fix merge_collapse to actually maintain the invariant it purports to (closes ↵Benjamin Peterson2015-02-251-1/+2
| | | | | | | | | | | | | | | | #23515) See de Gouw, Stijn and Rot, Jurriaan and de Boer, Frank S and Bubel, Richard and Hähnle, Reiner "OpenJDK’s java.utils.Collection.sort() is broken: The good, the bad and the worst case"
* | Issue #23490: Fixed possible crashes related to interoperability betweenSerhiy Storchaka2015-02-201-0/+9
|\ \ | |/ | | | | old-style and new API for string with 2**30-1 characters.
| * Issue #23490: Fixed possible crashes related to interoperability betweenSerhiy Storchaka2015-02-201-0/+9
| | | | | | | | old-style and new API for string with 2**30-1 characters.
* | Issue #23450: Fixed possible integer overflows.Serhiy Storchaka2015-02-162-2/+2
| |
* | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-17/+5
|\ \ | |/ | | | | overflows. Added few missed PyErr_NoMemory().
| * Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-17/+5
| | | | | | | | overflows. Added few missed PyErr_NoMemory().
* | Issue #23383: Cleaned up bytes formatting.Serhiy Storchaka2015-02-101-140/+51
| |
* | Mirco-optimizations to reduce register spills and reloads observed on CLANG ↵Raymond Hettinger2015-02-091-2/+4
| | | | | | | | and GCC.
* | Fix definition mismatch for type_is_subtype_base_chain.Steve Dower2015-02-061-1/+1
|\ \ | |/
| * Fix definition mismatch for type_is_subtype_base_chain.Steve Dower2015-02-061-1/+1
| |
* | merge 3.4 (#22735)Benjamin Peterson2015-02-061-252/+391
|\ \ | |/
| * fix many custom mro() edge cases and improve code quality (#22735)Benjamin Peterson2015-02-061-253/+392
| | | | | | | | Patch by Eldar Abusalimov.
* | Minor code clean up.Raymond Hettinger2015-02-041-2/+2
| |
* | Issue 23359: Reduce size of code in set_lookkey. Only do linear probes when ↵Raymond Hettinger2015-02-031-33/+0
| | | | | | | | | | | | there is no wrap-around. Nice simplification contributed by Serhiy Storchaka :-)
* | Issue #14203: Remove obsolete support for view==NULL in PyBuffer_FillInfo()Stefan Krah2015-02-032-9/+13
| | | | | | | | | | and bytearray_getbuffer(). Both functions now raise BufferError in that case.
* | Issue #22896: Fixed using _getbuffer() in recently added _PyBytes_Format().Serhiy Storchaka2015-02-021-3/+2
| |
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-028-304/+282
|\ \ | |/ | | | | and PyObject_AsWriteBuffer().
| * Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-028-244/+189
| | | | | | | | and PyObject_AsWriteBuffer().
* | Issue 23359: Tighten inner search loop for sets (don't and-mask every entry ↵Raymond Hettinger2015-02-021-24/+53
| | | | | | | | lookup).
* | Merge from 3.4.Stefan Krah2015-02-011-2/+2
|\ \ | |/
| * Issue #23370: Fix off-by-one error for non-contiguous buffers.Stefan Krah2015-02-011-2/+2
| |
* | Issue #22445: PyBuffer_IsContiguous() now implements precise contiguityStefan Krah2015-02-011-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 Hettinger2015-01-311-4/+4
| | | | | | | | set_insert_clean().
* | Minor tweak to improve code clarity.Raymond Hettinger2015-01-311-1/+1
| |
* | Fix typo in a comment.Raymond Hettinger2015-01-311-1/+1
| |
* | allow changing __class__ between a heaptype and non-heaptype in some cases ↵Benjamin Peterson2015-01-301-26/+37
| | | | | | | | | | | | (closes #22986) Patch by Nathaniel Smith.
* | Closes #22668: Merge from 3.4.Stefan Krah2015-01-291-4/+52
|\ \ | |/
| * Issue #22668: Ensure that format strings survive slicing after casting.Stefan Krah2015-01-291-4/+52
| |
* | Issue #22079: PyType_Ready() now checks that statically allocated type hasSerhiy Storchaka2015-01-281-0/+14
|\ \ | |/ | | | | no dynamically allocated bases.
| * Issue #22079: PyType_Ready() now checks that statically allocated type hasSerhiy Storchaka2015-01-281-0/+14
| | | | | | | | no dynamically allocated bases.
* | Revert unintended part of the commit (the key==dummy test wasn't supposed to ↵Raymond Hettinger2015-01-271-6/+2
| | | | | | | | change).
* | Remove unneeded dummy test from the set search loop (when the hashes match ↵Raymond Hettinger2015-01-271-4/+11
| | | | | | | | we know the key is not a dummy).
* | Issue #23269: Tighten search_loop in set_insert_clean()Raymond Hettinger2015-01-271-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 WindowsVictor Stinner2015-01-261-1/+1
| | | | | | | | Explicitly cast the long to char.
* | Issue #15859: PyUnicode_EncodeFSDefault(), PyUnicode_EncodeMBCS() andVictor Stinner2015-01-261-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 lenBenjamin Peterson2015-01-261-1/+1
| |
* | Issue #21408: The default __ne__() now returns NotImplemented if __eq__()Serhiy Storchaka2015-01-261-2/+7
|\ \ | |/ | | | | returned NotImplemented. Removed incorrect implementations of __ne__().
| * Issue #21408: The default __ne__() now returns NotImplemented if __eq__()Serhiy Storchaka2015-01-261-2/+7
| | | | | | | | returned NotImplemented. Removed incorrect implementations of __ne__().
* | Set the hash values of dummy entries to -1. Improves quality of entry->hash ↵Raymond Hettinger2015-01-261-0/+2
| | | | | | | | == hash tests.
* | Update out-of-date comments.Raymond Hettinger2015-01-261-5/+3
| |
* | Issue #23119: Simplify setobject by inlining the special case for unicode ↵Raymond Hettinger2015-01-261-70/+11
| | | | | | | | equality testing.
* | Issue #23321: Fixed a crash in str.decode() when error handler returnedSerhiy Storchaka2015-01-251-2/+6
|\ \ | |/ | | | | replacment string longer than mailformed input data.
| * Issue #23321: Fixed a crash in str.decode() when error handler returnedSerhiy Storchaka2015-01-251-2/+6
| | | | | | | | replacment string longer than mailformed input data.
* | Issue20284: Implement PEP461Ethan Furman2015-01-244-17/+700
| |
* | A hybrid of and-masking and a conditional-set-to-zero produce even faster ↵Raymond Hettinger2015-01-191-1/+2
| | | | | | | | search loop.