summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+12
| | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types.
* Issue #24802: Copy bytes-like objects to null-terminated buffers if necessaryMartin Panter2015-11-073-9/+35
| | | | | | | | This avoids possible buffer overreads when int(), float(), compile(), exec() and eval() are passed bytes-like objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch by John Leitch, Serhiy Storchaka and Martin Panter.
* Issue #25523: Further a-to-an corrections.Serhiy Storchaka2015-11-021-2/+2
|
* Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-022-2/+2
| | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* Various minor typos in documentation and commentsMartin Panter2015-10-072-2/+2
|
* prevent unacceptable bases from becoming bases through multiple inheritance ↵Benjamin Peterson2015-10-071-6/+6
| | | | (#24806)
* Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:Serhiy Storchaka2015-10-021-9/+12
| | | | | 1. Non-ASCII bytes were accepted after shift sequence. 2. A low surrogate could be emitted in case of error in high surrogate.
* Issue #25182: Fix compilation on WindowsVictor Stinner2015-09-301-3/+6
| | | | Restore also errno value before calling PyErr_SetFromErrno().
* Issue #25182: The stdprinter (used as sys.stderr before the io module isSerhiy Storchaka2015-09-301-6/+22
| | | | imported at startup) now uses the backslashreplace error handler.
* Issue #21279: Flesh out str.translate docsZachary Ware2015-08-061-5/+6
| | | | Initial patch by Kinga Farkas, Martin Panter, and John Posner.
* merge 3.3 (#24407)Benjamin Peterson2015-07-051-7/+19
|\
| * protect against mutation of the dict during insertion (closes #24407)Benjamin Peterson2015-07-051-7/+19
| |
* | Issue #24467: Fixed possible buffer over-read in bytearray. The bytearraySerhiy Storchaka2015-06-291-1/+3
| | | | | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated.
* | Fixed indentation of Python examples in C comments.Serhiy Storchaka2015-06-102-7/+7
| |
* | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),Serhiy Storchaka2015-05-304-15/+37
| | | | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly.
* | Issue #24257: Fixed incorrect uses of PyObject_IsInstance().Serhiy Storchaka2015-05-222-7/+5
| | | | | | | | | | Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace.
* | Issue #23985: Fixed integer overflow in iterator object. Patch bySerhiy Storchaka2015-05-211-0/+5
| | | | | | | | Clement Rouault.
* | Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).Antoine Pitrou2015-05-191-17/+17
| |
* | Issue #23985: Fix a possible buffer overrun when deleting a slice from the ↵Antoine Pitrou2015-05-191-6/+2
| | | | | | | | | | | | front of a bytearray and then appending some other bytes data. Patch by Martin Panter.
* | Fixed typos in comments.Serhiy Storchaka2015-05-181-2/+2
| |
* | Issue #23757: Only call the concrete list API for exact lists.Raymond Hettinger2015-05-171-1/+1
| |
* | Issue #21354: PyCFunction_New function is exposed by python DLL again.Andrew Svetlov2015-04-271-1/+1
| |
* | Issue #23996: Avoid a crash when a delegated generator raises an ↵Antoine Pitrou2015-04-261-5/+22
| | | | | | | | unnormalized StopIteration exception. Patch by Stefan Behnel.
* | merge 3.3 (#24044)Benjamin Peterson2015-04-231-2/+4
|\ \ | |/
| * merge 3.2 (#24044)Benjamin Peterson2015-04-231-2/+4
| |\
| | * properly handle malloc failure (closes #24044)Benjamin Peterson2015-04-231-2/+4
| | | | | | | | | | | | Patch by Christian Heimes.
| | * Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV.Serhiy Storchaka2015-01-301-0/+2
| | |
| | * Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. AnalysisSerhiy Storchaka2015-01-271-17/+20
| | | | | | | | | | | | and fix by Guido Vranken.
| | * Fix unicode_aswidechar() for 4b unicode and 2b wchar_t (AIX).Georg Brandl2014-10-011-1/+1
| | |
* | | improved range docstring (closes #22785)Benjamin Peterson2015-04-221-1/+5
| | | | | | | | | | | | Patch by Ned Batchelder.
* | | Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case ofSerhiy Storchaka2015-03-301-7/+4
| | | | | | | | | | | | MemoryError.
* | | Issue #23803: Fixed str.partition() and str.rpartition() when a separatorSerhiy Storchaka2015-03-291-5/+5
| | | | | | | | | | | | is wider then partitioned string.
* | | Issue #22079: Deprecation warning now is issued in PyType_Ready() instead ofSerhiy Storchaka2015-03-221-5/+8
| | | | | | | | | | | | | | | raising TypeError when statically allocated type subclasses dynamically allocated type
* | | Issue #23629: Fix the default __sizeof__ implementation for variable-sized ↵Antoine Pitrou2015-03-103-27/+1
| | | | | | | | | | | | objects.
* | | fix potential refleak in PyFloat_AsDouble (closes #23590)Benjamin Peterson2015-03-061-0/+1
| | |
* | | merge 3.3 (#23362)Benjamin Peterson2015-03-021-1/+1
|\ \ \ | |/ /
| * | use PyMem_NEW to detect overflow (closes #23362)Benjamin Peterson2015-03-021-1/+1
| | |
| * | Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. AnalysisSerhiy Storchaka2015-01-271-0/+2
| | | | | | | | | | | | and fix by Guido Vranken.
* | | 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 #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-17/+5
| | | | | | | | | | | | overflows. Added few missed PyErr_NoMemory().
* | | Fix definition mismatch for type_is_subtype_base_chain.Steve Dower2015-02-061-1/+1
| | |
* | | fix many custom mro() edge cases and improve code quality (#22735)Benjamin Peterson2015-02-061-253/+392
| | | | | | | | | | | | Patch by Eldar Abusalimov.
* | | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-028-244/+189
| | | | | | | | | | | | and PyObject_AsWriteBuffer().
* | | Issue #23370: Fix off-by-one error for non-contiguous buffers.Stefan Krah2015-02-011-2/+2
| | |
* | | 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 #21408: The default __ne__() now returns NotImplemented if __eq__()Serhiy Storchaka2015-01-261-2/+7
| | | | | | | | | | | | returned NotImplemented. Removed incorrect implementations of __ne__().
* | | 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 #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-2/+2
| | |