Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #24268: Address some PEP 489 refleaks | Nick Coghlan | 2015-05-23 | 2 | -5/+11 |
| | | | | | | | | - missing DECREF in PyModule_FromDefAndSpec2 - missing DECREF in PyType_FromSpecAndBases2 - missing DECREF in _testmultiphase module Patch by Petr Viktorin | ||||
* | PEP 489: Multi-phase extension module initialization | Nick Coghlan | 2015-05-23 | 1 | -52/+283 |
| | | | | | | | | | | | | | | | | | | | | | | | Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles. | ||||
* | Issue 24237: Raise PendingDeprecationWarning per PEP 479 | Yury Selivanov | 2015-05-22 | 1 | -3/+20 |
| | | | | | | | | | Raise PendingDeprecationWarning when generator raises StopIteration and no __future__ import is used. Fix offenders in the stdlib and tests. See also issue 22906. Thanks to Nick Coghlan and Berker Peksag for reviews. | ||||
* | Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). | Serhiy Storchaka | 2015-05-22 | 2 | -7/+5 |
|\ | | | | | | | | | Fixed segmentation fault in sqlite3.Row constructor with faked cursor type. Fixed system error in the comparison of faked types.SimpleNamespace. | ||||
| * | Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). | Serhiy Storchaka | 2015-05-22 | 2 | -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 by | Serhiy Storchaka | 2015-05-21 | 1 | -0/+5 |
|\ \ | |/ | | | | | Clement Rouault. | ||||
| * | Issue #23985: Fixed integer overflow in iterator object. Patch by | Serhiy Storchaka | 2015-05-21 | 1 | -0/+5 |
| | | | | | | | | Clement Rouault. | ||||
* | | Fix some compilation warnings when using gcc (-Wmaybe-uninitialized). | Antoine Pitrou | 2015-05-19 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | Fix some compilation warnings when using gcc (-Wmaybe-uninitialized). | Antoine Pitrou | 2015-05-19 | 1 | -17/+17 |
| | | |||||
* | | Issue #23985: Fix a possible buffer overrun when deleting a slice from the ↵ | Antoine Pitrou | 2015-05-19 | 1 | -6/+2 |
|\ \ | |/ | | | | | | | | | front of a bytearray and then appending some other bytes data. Patch by Martin Panter. | ||||
| * | Issue #23985: Fix a possible buffer overrun when deleting a slice from the ↵ | Antoine Pitrou | 2015-05-19 | 1 | -6/+2 |
| | | | | | | | | | | | | front of a bytearray and then appending some other bytes data. Patch by Martin Panter. | ||||
* | | Fixed typos in comments. | Serhiy Storchaka | 2015-05-18 | 1 | -4/+4 |
|\ \ | |/ | |||||
| * | Fixed typos in comments. | Serhiy Storchaka | 2015-05-18 | 1 | -2/+2 |
| | | |||||
* | | merge | Raymond Hettinger | 2015-05-17 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #23757: Only call the concrete list API for exact lists. | Raymond Hettinger | 2015-05-17 | 1 | -1/+1 |
| | | |||||
* | | Issue #24064: Help property() support GC | Raymond Hettinger | 2015-05-13 | 1 | -1/+9 |
| | | |||||
* | | Minor stylistic and consistency cleanup. | Raymond Hettinger | 2015-05-13 | 1 | -19/+19 |
| | | |||||
* | | Issue #23290: Optimize set_merge() for cases where the target is empty. | Raymond Hettinger | 2015-05-13 | 1 | -10/+40 |
| | | | | | | | | (Contributed by Serhiy Storchaka.) | ||||
* | | Issue #24064: Property() docstrings are now writeable. | Raymond Hettinger | 2015-05-13 | 1 | -1/+1 |
| | | | | | | | | (Patch by Berker Peksag.) | ||||
* | | Issue #22486: Added the math.gcd() function. The fractions.gcd() function ↵ | Serhiy Storchaka | 2015-05-12 | 1 | -0/+205 |
| | | | | | | | | | | | | now is deprecated. Based on patch by Mark Dickinson. | ||||
* | | Issue #15027: The UTF-32 encoder is now 3x to 7x faster. | Serhiy Storchaka | 2015-05-12 | 2 | -61/+128 |
| | | |||||
* | | Fix warnings for gen_get_iter() | Yury Selivanov | 2015-05-12 | 1 | -1/+1 |
| | | |||||
* | | PEP 0492 -- Coroutines with async and await syntax. Issue #24017. | Yury Selivanov | 2015-05-12 | 6 | -17/+198 |
| | | |||||
* | | Issue #22906: Do incref before SetCause/SetContext | Yury Selivanov | 2015-05-10 | 1 | -1/+1 |
| | | |||||
* | | Issue 22906: Increment refcount after PyException_SetContext | Yury Selivanov | 2015-05-09 | 1 | -0/+1 |
| | | |||||
* | | PEP 479: Change StopIteration handling inside generators. | Yury Selivanov | 2015-05-09 | 1 | -0/+24 |
| | | | | | | | | Closes issue #22906. | ||||
* | | PEP 448: additional unpacking generalizations (closes #2292) | Benjamin Peterson | 2015-05-06 | 1 | -3/+3 |
| | | | | | | | | Patch by Neil Girdhar. | ||||
* | | Issue #23910: Optimize property() getter calls. Patch by Joe Jevnik | Raymond Hettinger | 2015-04-30 | 1 | -1/+9 |
| | | |||||
* | | Merge 3.4 | Andrew Svetlov | 2015-04-27 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #21354: PyCFunction_New function is exposed by python DLL again. | Andrew Svetlov | 2015-04-27 | 1 | -1/+1 |
| | | |||||
* | | Issue #23996: Avoid a crash when a delegated generator raises an ↵ | Antoine Pitrou | 2015-04-26 | 1 | -5/+22 |
|\ \ | |/ | | | | | unnormalized StopIteration exception. Patch by Stefan Behnel. | ||||
| * | Issue #23996: Avoid a crash when a delegated generator raises an ↵ | Antoine Pitrou | 2015-04-26 | 1 | -5/+22 |
| | | | | | | | | unnormalized StopIteration exception. Patch by Stefan Behnel. | ||||
* | | Implements issue #9951: Adds a hex() method to bytes, bytearray, & memoryview. | Gregory P. Smith | 2015-04-25 | 3 | -0/+45 |
| | | | | | | | | | | | | | | Also updates a few internal implementations of the same thing to use the new built-in code. Contributed by Arnon Yaari. | ||||
* | | Issue #24007: Argument Clinic now writes the format of PyArg_Parse*() at the | Serhiy Storchaka | 2015-04-23 | 3 | -53/+25 |
| | | | | | | | | same line as function name. | ||||
* | | merge 3.4 (#24044) | Benjamin Peterson | 2015-04-23 | 1 | -2/+4 |
|\ \ | |/ | |||||
| * | merge 3.3 (#24044) | Benjamin Peterson | 2015-04-23 | 1 | -2/+4 |
| |\ | |||||
| | * | merge 3.2 (#24044) | Benjamin Peterson | 2015-04-23 | 1 | -2/+4 |
| | |\ | |||||
| | | * | properly handle malloc failure (closes #24044) | Benjamin Peterson | 2015-04-23 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | Patch by Christian Heimes. | ||||
| | | * | Issue #23055: Fixed read-past-the-end error in PyUnicode_FromFormatV. | Serhiy Storchaka | 2015-01-30 | 1 | -0/+2 |
| | | | | |||||
| | | * | Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis | Serhiy Storchaka | 2015-01-27 | 1 | -17/+20 |
| | | | | | | | | | | | | | | | | and fix by Guido Vranken. | ||||
| | | * | Fix unicode_aswidechar() for 4b unicode and 2b wchar_t (AIX). | Georg Brandl | 2014-10-01 | 1 | -1/+1 |
| | | | | |||||
* | | | | merge 3.4 (#22785) | Benjamin Peterson | 2015-04-22 | 1 | -1/+5 |
|\ \ \ \ | |/ / / | |||||
| * | | | improved range docstring (closes #22785) | Benjamin Peterson | 2015-04-22 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | | Patch by Ned Batchelder. | ||||
* | | | | Issue #23908: os functions now reject paths with embedded null character | Serhiy Storchaka | 2015-04-20 | 1 | -15/+0 |
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | on Windows instead of silently truncate them. Removed no longer used _PyUnicode_HasNULChars(). | ||||
* | | | | Remove local dead code. In both blocks dir is always greater 0. | Christian Heimes | 2015-04-18 | 2 | -4/+2 |
| | | | | |||||
* | | | | Issue 19933: Provide default argument for ndigits in round. Patch by ↵ | Steve Dower | 2015-04-15 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | Vajrasky Kok. | ||||
* | | | | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 4 | -26/+42 |
| | | | | |||||
* | | | | Issue #20586: Argument Clinic now ensures signatures on functions without ↵ | Zachary Ware | 2015-04-13 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | docstrings. | ||||
* | | | | Issue #23726: Don't enable GC for user subclasses of non-GC types that don't ↵ | Antoine Pitrou | 2015-04-13 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | add any new fields. Patch by Eugene Toder. | ||||
* | | | | Issue #23492: Argument Clinic now generates argument parsing code with | Serhiy Storchaka | 2015-04-03 | 2 | -20/+20 |
| | | | | | | | | | | | | | | | | PyArg_Parse instead of PyArg_ParseTuple if possible. |