Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #25961: Disallowed null characters in the type name. | Serhiy Storchaka | 2015-12-30 | 1 | -28/+17 |
| | | | | Simplified testing for null characters in __name__ setter. | ||||
* | Issue #20440: More use of Py_SETREF. | Serhiy Storchaka | 2015-12-27 | 2 | -10/+11 |
| | | | | | 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 Storchaka | 2015-12-27 | 2 | -37/+23 |
| | | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR. | ||||
* | Issue #22995: Instances of extension types with a state that aren't | Serhiy Storchaka | 2015-12-25 | 1 | -15/+36 |
| | | | | | | 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: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 9 | -36/+18 |
| | | | | macro Py_SETREF. | ||||
* | Issue #25914: Fixed and simplified OrderedDict.__sizeof__. | Serhiy Storchaka | 2015-12-22 | 2 | -24/+10 |
| | |||||
* | Issue #25766: Special method __bytes__() now works in str subclasses. | Serhiy Storchaka | 2015-12-20 | 1 | -6/+12 |
| | |||||
* | Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. | Serhiy Storchaka | 2015-12-19 | 6 | -7/+5 |
| | | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. | ||||
* | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. | Serhiy Storchaka | 2015-12-02 | 1 | -0/+5 |
|\ | |||||
| * | Issue #25709: Fixed problem with in-place string concatenation and utf-8 cache. | Serhiy Storchaka | 2015-12-02 | 1 | -0/+5 |
| | | |||||
* | | Issue #24097: Fixed crash in object.__reduce__() if slot name is freed inside | Serhiy Storchaka | 2015-11-25 | 1 | -0/+3 |
|\ \ | |/ | | | | | __getattr__. Original patch by Antoine Pitrou. | ||||
| * | Issue #24097: Fixed crash in object.__reduce__() if slot name is freed inside | Serhiy Storchaka | 2015-11-25 | 1 | -0/+3 |
| | | | | | | | | __getattr__. Original patch by Antoine Pitrou. | ||||
* | | Issue #24731: Fixed crash on converting objects with special methods | Serhiy Storchaka | 2015-11-25 | 3 | -6/+6 |
|\ \ | |/ | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly. | ||||
| * | Issue #24731: Fixed crash on converting objects with special methods | Serhiy Storchaka | 2015-11-25 | 3 | -6/+6 |
| | | | | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly. | ||||
* | | make the PyUnicode_FSConverter cleanup set the decrefed argument to NULL ↵ | Benjamin Peterson | 2015-11-16 | 1 | -0/+1 |
| | | | | | | | | (closes #25630) | ||||
* | | Issue #25462: The hash of the key now is calculated only once in most | Serhiy Storchaka | 2015-11-13 | 1 | -35/+83 |
| | | | | | | | | operations in C implementation of OrderedDict. | ||||
* | | Issue #22995: Default implementation of __reduce__ and __reduce_ex__ now | Serhiy Storchaka | 2015-11-12 | 1 | -0/+6 |
|\ \ | |/ | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types. | ||||
| * | Issue #22995: Default implementation of __reduce__ and __reduce_ex__ now | Serhiy Storchaka | 2015-11-12 | 1 | -0/+12 |
| | | | | | | | | | | rejects builtin types with not defined __new__. Added tests for non-pickleable types. | ||||
* | | Fix Visual Studio warning. | Stefan Krah | 2015-11-10 | 1 | -1/+1 |
| | | |||||
* | | Iaaue #25598: Fix memory_hex from #9951 for non-contiguous buffers. | Stefan Krah | 2015-11-10 | 1 | -1/+16 |
| | | |||||
* | | Issue #24802: Merge null termination fixes from 3.4 into 3.5 | Martin Panter | 2015-11-07 | 3 | -9/+35 |
|\ \ | |/ | |||||
| * | Issue #24802: Copy bytes-like objects to null-terminated buffers if necessary | Martin Panter | 2015-11-07 | 3 | -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 #25410: Made testing that od_fast_nodes and dk_entries are in sync more | Serhiy Storchaka | 2015-11-06 | 1 | -4/+8 |
| | | | | | | | | reliable. | ||||
* | | Issue #24726: Revert setting the value on the dict if | Serhiy Storchaka | 2015-11-06 | 1 | -1/+7 |
| | | | | | | | | _odict_add_new_node() fails. | ||||
* | | Issue #25558: Refactoring OrderedDict iteration. | Serhiy Storchaka | 2015-11-06 | 1 | -40/+31 |
| | | |||||
* | | Issue #25449: Fixed a crash and leaking NULL in repr() of OrderedDict that | Serhiy Storchaka | 2015-11-04 | 1 | -2/+13 |
| | | | | | | | | was mutated by direct calls of dict methods. | ||||
* | | Issue #25449: Iterating OrderedDict with keys with unstable hash now raises | Serhiy Storchaka | 2015-11-04 | 1 | -0/+2 |
| | | | | | | | | | | | | KeyError in C implementations as well as in Python implementation. Added tests for OrderedDict subclasses. | ||||
* | | Issue #25523: Merge a-to-an corrections from 3.4. | Serhiy Storchaka | 2015-11-02 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Issue #25523: Further a-to-an corrections. | Serhiy Storchaka | 2015-11-02 | 1 | -2/+2 |
| | | |||||
* | | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 2 | -2/+2 |
|\ \ | |/ | |||||
| * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 2 | -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. | ||||
* | | Issue #25395: Fixed crash when highly nested OrderedDict structures were | Serhiy Storchaka | 2015-11-01 | 1 | -3/+14 |
| | | | | | | | | garbage collected. | ||||
* | | Issue #25410: C implementation of OrderedDict now uses type(self) instead of | Serhiy Storchaka | 2015-10-22 | 1 | -31/+14 |
| | | | | | | | | self.__class__ in __repr__() and __reduce__() for simplicity and reliability. | ||||
* | | Issue #25410: Fixed a memory leak in OrderedDict in the case when key's hash | Serhiy Storchaka | 2015-10-20 | 1 | -1/+1 |
| | | | | | | | | calculation fails. | ||||
* | | Issue #25410: Cleaned up and fixed minor bugs in C implementation of ↵ | Serhiy Storchaka | 2015-10-18 | 1 | -158/+72 |
| | | | | | | | | OrderedDict. | ||||
* | | Issue #25406: Fixed a bug in C implementation of OrderedDict.move_to_end() | Serhiy Storchaka | 2015-10-14 | 1 | -21/+10 |
| | | | | | | | | | | that caused segmentation fault or hang in iterating after moving several items to the start of ordered dict. | ||||
* | | More typos in 3.5 documentation and comments | Martin Panter | 2015-10-07 | 2 | -2/+2 |
| | | |||||
* | | Merge typo fixes from 3.4 into 3.5 | Martin Panter | 2015-10-07 | 2 | -2/+2 |
|\ \ | |/ | |||||
| * | Various minor typos in documentation and comments | Martin Panter | 2015-10-07 | 2 | -2/+2 |
| | | |||||
* | | merge 3.4 (#24806) | Benjamin Peterson | 2015-10-07 | 1 | -6/+6 |
|\ \ | |/ | |||||
| * | prevent unacceptable bases from becoming bases through multiple inheritance ↵ | Benjamin Peterson | 2015-10-07 | 1 | -6/+6 |
| | | | | | | | | (#24806) | ||||
* | | Issue #24848: Fixed bugs in UTF-7 decoding of misformed data: | Serhiy Storchaka | 2015-10-02 | 1 | -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. 3. In some circumstances the '\xfd' character was produced instead of the replacement character '\ufffd' (due to a bug in _PyUnicodeWriter). | ||||
| * | Issue #24848: Fixed bugs in UTF-7 decoding of misformed data: | Serhiy Storchaka | 2015-10-02 | 1 | -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 #24483: C implementation of functools.lru_cache() now calculates key's | Serhiy Storchaka | 2015-10-02 | 1 | -0/+37 |
| | | | | | | | | hash only once. | ||||
* | | (Merge 3.4) Issue #25182: Fix compilation on Windows | Victor Stinner | 2015-09-30 | 1 | -3/+6 |
|\ \ | |/ | |||||
| * | Issue #25182: Fix compilation on Windows | Victor Stinner | 2015-09-30 | 1 | -3/+6 |
| | | | | | | | | Restore also errno value before calling PyErr_SetFromErrno(). | ||||
* | | Issue #25182: The stdprinter (used as sys.stderr before the io module is | Serhiy Storchaka | 2015-09-30 | 1 | -4/+21 |
|\ \ | |/ | | | | | imported at startup) now uses the backslashreplace error handler. | ||||
| * | Issue #25182: The stdprinter (used as sys.stderr before the io module is | Serhiy Storchaka | 2015-09-30 | 1 | -6/+22 |
| | | | | | | | | imported at startup) now uses the backslashreplace error handler. | ||||
* | | Issue #24999: In longobject.c, use two shifts instead of ">> 2*PyLong_SHIFT" to | Victor Stinner | 2015-09-19 | 1 | -4/+6 |
| | | | | | | | | | | | | avoid undefined behaviour when LONG_MAX type is smaller than 60 bits. This change should fix a warning with the ICC compiler. | ||||
* | | odictobject.c: fix compiler warning | Victor Stinner | 2015-09-18 | 1 | -1/+1 |
| | | | | | | | | | | PyObject_Length() returns a P_ssize_t, not an int. Use a Py_ssize_t to avoid overflow. |