| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | 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. | ||||
| * | | Issue #24912: Prevent __class__ assignment to immutable built-in objects. ↵ | Guido van Rossum | 2015-09-05 | 1 | -0/+59 |
| |\ \ | | | | | | | | | | (Merge 3.5.0 -> 3.5) | ||||
| | * | | Issue #24912: Prevent __class__ assignment to immutable built-in objects. | Guido van Rossum | 2015-09-05 | 1 | -0/+59 |
| | | | | |||||
| * | | | Issue #24992: Fix error handling and a race condition (related to garbage | Victor Stinner | 2015-09-03 | 1 | -18/+22 |
| |/ / | | | | | | | | | | | collection) in collections.OrderedDict constructor. Patch reviewed by Serhiy Storchaka. | ||||
| * | | Issue #15944: memoryview: Allow arbitrary formats when casting to bytes. | Stefan Krah | 2015-08-08 | 1 | -8/+2 |
| | | | | | | | | | Original patch by Martin Panter. | ||||
| * | | Issue #24667: Resize odict in all cases that the underlying dict resizes. | Eric Snow | 2015-08-07 | 1 | -7/+10 |
| | | | |||||
| * | | Issue #21279: Merge with 3.4 | Zachary Ware | 2015-08-06 | 1 | -5/+6 |
| |\ \ | |/ | |||||
| | * | Issue #21279: Flesh out str.translate docs | Zachary Ware | 2015-08-06 | 1 | -5/+6 |
| | | | | | | | | | Initial patch by Kinga Farkas, Martin Panter, and John Posner. | ||||
| * | | Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind() | Serhiy Storchaka | 2015-07-20 | 2 | -6/+14 |
| | | | | | | | | | for single-byte argument on Linux. | ||||
| * | | Issue #24583: Fix crash when set is mutated while being updated. | Raymond Hettinger | 2015-07-16 | 1 | -1/+2 |
| | | | |||||
| * | | merge 3.4 (#24407) | Benjamin Peterson | 2015-07-05 | 1 | -7/+19 |
| |\ \ | |/ | |||||
| | * | merge 3.3 (#24407) | Benjamin Peterson | 2015-07-05 | 1 | -7/+19 |
| | |\ | |||||
| | | * | protect against mutation of the dict during insertion (closes #24407) | Benjamin Peterson | 2015-07-05 | 1 | -7/+19 |
| | | | | |||||
| * | | | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl. | Yury Selivanov | 2015-07-03 | 2 | -7/+14 |
| | | | | |||||
| * | | | Issue #24450: Add gi_yieldfrom to generators; cr_await to coroutines. | Yury Selivanov | 2015-07-03 | 1 | -0/+22 |
| | | | | | | | | | | | | | Patch by Benno Leslie and Yury Selivanov. | ||||
| * | | | Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray | Serhiy Storchaka | 2015-06-29 | 1 | -1/+3 |
| |\ \ \ | |/ / | | | | | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated. | ||||
| | * | | Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray | Serhiy Storchaka | 2015-06-29 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated. | ||||
| * | | | upgrade to Unicode 8.0.0 | Benjamin Peterson | 2015-06-27 | 1 | -791/+1641 |
| | | | | |||||
| * | | | Issue #24439: Improve PEP 492 related docs. | Yury Selivanov | 2015-06-24 | 1 | -5/+5 |
| | | | | | | | | | | | | | Patch by Martin Panter. | ||||
| * | | | Issue #24400: Introduce a distinct type for 'async def' coroutines. | Yury Selivanov | 2015-06-22 | 2 | -57/+274 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of changes: 1. Coroutines now have a distinct, separate from generators type at the C level: PyGen_Type, and a new typedef PyCoroObject. PyCoroObject shares the initial segment of struct layout with PyGenObject, making it possible to reuse existing generators machinery. The new type is exposed as 'types.CoroutineType'. As a consequence of having a new type, CO_GENERATOR flag is no longer applied to coroutines. 2. Having a separate type for coroutines made it possible to add an __await__ method to the type. Although it is not used by the interpreter (see details on that below), it makes coroutines naturally (without using __instancecheck__) conform to collections.abc.Coroutine and collections.abc.Awaitable ABCs. [The __instancecheck__ is still used for generator-based coroutines, as we don't want to add __await__ for generators.] 3. Add new opcode: GET_YIELD_FROM_ITER. The opcode is needed to allow passing native coroutines to the YIELD_FROM opcode. Before this change, 'yield from o' expression was compiled to: (o) GET_ITER LOAD_CONST YIELD_FROM Now, we use GET_YIELD_FROM_ITER instead of GET_ITER. The reason for adding a new opcode is that GET_ITER is used in some contexts (such as 'for .. in' loops) where passing a coroutine object is invalid. 4. Add two new introspection functions to the inspec module: getcoroutinestate(c) and getcoroutinelocals(c). 5. inspect.iscoroutine(o) is updated to test if 'o' is a native coroutine object. Before this commit it used abc.Coroutine, and it was requested to update inspect.isgenerator(o) to use abc.Generator; it was decided, however, that inspect functions should really be tailored for checking for native types. 6. sys.set_coroutine_wrapper(w) API is updated to work with only native coroutines. Since types.coroutine decorator supports any type of callables now, it would be confusing that it does not work for all types of coroutines. 7. Exceptions logic in generators C implementation was updated to raise clearer messages for coroutines: Before: TypeError("generator raised StopIteration") After: TypeError("coroutine raised StopIteration") | ||||
| * | | | Fixed indentation of Python examples in C comments. | Serhiy Storchaka | 2015-06-10 | 2 | -7/+7 |
| |\ \ \ | |/ / | |||||
| | * | | Fixed indentation of Python examples in C comments. | Serhiy Storchaka | 2015-06-10 | 2 | -7/+7 |
| | | | | |||||
| * | | | repair my irrational excuberance | Benjamin Peterson | 2015-06-07 | 1 | -54/+57 |
| | | | | |||||
| * | | | remove unnecessary braces and indentation | Benjamin Peterson | 2015-06-07 | 1 | -58/+57 |
| | | | | |||||
| * | | | fix refleak when keys() fails | Benjamin Peterson | 2015-06-04 | 1 | -2/+6 |
| | | | | |||||
| * | | | Issue #24369: Defend against key-changes during iteration. | Eric Snow | 2015-06-04 | 1 | -13/+19 |
| | | | | |||||
| * | | | Issue #24377: Fix a ref leak in OrderedDict.__repr__. | Eric Snow | 2015-06-03 | 1 | -1/+1 |
| | | | | |||||
| * | | | Issue #24362: Simplify the C OrderedDict fast nodes resize logic. | Eric Snow | 2015-06-03 | 1 | -34/+40 |
| | | | | |||||
| * | | | Issue #24368: Support keyword arguments in OrderedDict methods. | Eric Snow | 2015-06-03 | 1 | -23/+49 |
| | | | | |||||
| * | | | Issue #24359: Check for changed OrderedDict size during iteration. | Eric Snow | 2015-06-02 | 1 | -0/+10 |
| | | | | |||||
| * | | | Issue #24348: Drop superfluous increfs/decrefs. | Eric Snow | 2015-06-02 | 1 | -33/+13 |
| | | | | |||||
| * | | | Issue #24347: Set KeyError if PyDict_GetItemWithError returns NULL. | Eric Snow | 2015-06-02 | 1 | -15/+47 |
| | | | | |||||
| * | | | add Py_tp_finalize slot (closes #24345) | Benjamin Peterson | 2015-06-01 | 1 | -0/+1 |
| | | | | | | | | | | | | | Patch from Petr Viktorin. | ||||
