summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* properly use PyObject_CallMethod in dictview binary operations (closes #26478)Benjamin Peterson2016-03-041-5/+5
|
* Issue #25698: Importing module if the stack is too deep no longer replacesSerhiy Storchaka2016-02-101-0/+30
| | | | imported module with the empty one.
* fix hash member name (closes #22847)Benjamin Peterson2016-02-071-1/+1
|
* fix debug assertionBenjamin Peterson2016-02-051-1/+1
|
* Issue #22847: Improve method cache efficiency.Antoine Pitrou2014-11-141-5/+38
|
* code_richcompare() now uses the constants typesVictor Stinner2016-01-221-1/+143
| | | | | | | | | Issue #25843: When compiling code, don't merge constants if they are equal but have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now correctly compiled to two different functions: f1() returns 1 (int) and f2() returns 1.0 (int), even if 1 and 1.0 are equal. Add a new _PyCode_ConstantKey() private function.
* set tp_new from the class in the hierarchy that actually owns the descriptor ↵Benjamin Peterson2016-01-191-1/+1
| | | | | | (closes #25731) Debugging by Eryk Sun.
* Comment out two tests that won't pass now after reverting the typeobject.cBarry Warsaw2016-01-111-24/+0
| | | | | change. Also, as per further discussion, we'll just remove the regressing code in typeobject.c
* Issue #22995: [UPDATE] Comment out the one of the pickleability tests inBarry Warsaw2016-01-111-0/+9
| | | | _PyObject_GetState() due to regressions observed in Cython-based projects.
* remove some copyright notices supserseded by the toplevel onesBenjamin Peterson2016-01-011-3/+0
|
* Issue #25961: Fixed compilation error and a leak in type constructor.Serhiy Storchaka2015-12-311-4/+11
|
* Issue #25961: Disallowed null characters in the type name.Serhiy Storchaka2015-12-301-4/+11
|
* Issue #22995: Instances of extension types with a state that aren'tSerhiy Storchaka2015-12-301-7/+32
| | | | | | subclasses of list or dict and haven't implemented any pickle-related methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no longer be pickled. Including memoryview.
* Issue #20440: More use of Py_SETREF.Serhiy Storchaka2015-12-271-6/+8
| | | | | This patch is manually crafted and contains changes that couldn't be handled automatically.
* Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka2015-12-271-35/+22
| | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR.
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-248-29/+15
| | | | macro Py_SETREF.
* Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size.Serhiy Storchaka2015-12-194-4/+4
| | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined.
* Issue #19543: Added Py3k warning for decoding unicode.Serhiy Storchaka2015-12-031-0/+3
|
* Issue #24097: Fixed crash in object.__reduce__() if slot name is freed insideSerhiy Storchaka2015-11-251-1/+5
| | | | __getattr__. Original patch by Antoine Pitrou.
* Issue #24731: Fixed crash on converting objects with special methodsSerhiy Storchaka2015-11-253-3/+3
| | | | | __str__, __trunc__, and __float__ returning instances of subclasses of str, long, and float to subclasses of str, long, and float correspondingly.
* Issue #25678: Copy buffer objects to null-terminated strings.Serhiy Storchaka2015-11-203-6/+32
| | | | | | | | Avoid buffer overreads when int(), long(), float(), and compile() are passed buffer objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch backported from issue #24802 by Eryk Sun.
* Issue #22995: Default implementation of __reduce__ and __reduce_ex__ nowSerhiy Storchaka2015-11-121-0/+7
| | | | rejects builtin types with not defined __new__.
* Issue #7267: format(int, 'c') now raises OverflowError when the argument is notVictor Stinner2015-11-091-0/+8
| | | | in range(0, 256).
* Issue #24848: Fixed yet one bug in UTF-7 decoder. Testing for BASE64 characterSerhiy Storchaka2015-10-101-1/+4
| | | | was locale depending.
* Issue #25326: Improve an obscure error message.Raymond Hettinger2015-10-091-1/+1
|
* prevent unacceptable bases from becoming bases through multiple inheritance ↵Benjamin Peterson2015-10-071-7/+6
| | | | (#24806)
* Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:Serhiy Storchaka2015-10-021-7/+9
| | | | | 1. Non-ASCII bytes were accepted after shift sequence. 2. A low surrogate could be emitted in case of error in high surrogate.
* make comment not lie about the size of SMALL_REQUEST_THRESHOLDBenjamin Peterson2015-07-301-1/+1
|
* 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-10/+10
|
* Issue #19543: Emit deprecation warning for known non-text encodings.Serhiy Storchaka2015-05-313-9/+9
| | | | | | | | | | Backported issues #19619: encode() and decode() methods and constructors of str, unicode and bytearray classes now emit deprecation warning for known non-text encodings when Python is ran with the -3 option. Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the internal codec marking system added to emit deprecation warning for known non-text encodings at stream construction time when Python is ran with the -3 option.
* Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),Serhiy Storchaka2015-05-302-7/+20
| | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly.
* Issue #23985: Fixed integer overflow in iterator object. Original patch bySerhiy Storchaka2015-05-211-0/+5
| | | | Clement Rouault.
* Issue #23757: Only call the concrete list API for exact lists.Raymond Hettinger2015-05-171-1/+1
|
* Issue #23971: Fix underestimated presizing in dict.fromkeys()Raymond Hettinger2015-05-131-2/+2
|
* allow 2.7 to be built with asan (closes #24061)Benjamin Peterson2015-04-271-0/+20
|
* Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case ofSerhiy Storchaka2015-03-301-7/+4
| | | | MemoryError.
* Issue #22079: Py3k warning now is issued in PyType_Ready() instead ofSerhiy Storchaka2015-03-221-6/+9
| | | | | raising TypeError when statically allocated type subclasses dynamically allocated type
* Issue #23629: Fix the default __sizeof__ implementation for variable-sized ↵Antoine Pitrou2015-03-102-13/+1
| | | | objects.
* fix potential refleak in PyFloat_AsDouble (closes #23590)Benjamin Peterson2015-03-061-0/+1
|
* 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 #23370: Fix off-by-one error for non-contiguous buffers.Stefan Krah2015-02-011-2/+2
|
* Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV.Serhiy Storchaka2015-01-301-0/+2
|
* Issue #23055: Fixed off-by-one error in PyUnicode_FromFormatV.Serhiy Storchaka2015-01-301-1/+2
|
* Issue #23349: Fix off-by-one error in PyBuffer_ToContiguous(). Initial patchStefan Krah2015-01-301-2/+2
| | | | by Richard Hansen.
* Issue #22079: PyType_Ready() now checks that statically allocated type hasSerhiy Storchaka2015-01-281-0/+14
| | | | no dynamically allocated bases.
* Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. AnalysisSerhiy Storchaka2015-01-271-12/+13
| | | | and fix by Guido Vranken.
* Issue #23181: More "codepoint" -> "code point".Serhiy Storchaka2015-01-181-4/+4
|
* remove tautological condition (closes #22954)Benjamin Peterson2014-11-271-1/+1
|
* remove strange castsBenjamin Peterson2014-11-231-4/+4
|