Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | | | | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 8 | -1314/+1338 |
| | | | | |||||
* | | | | Issue #23466: Raised OverflowError if %c argument is out of range. | Serhiy Storchaka | 2015-04-03 | 1 | -3/+8 |
| | | | | |||||
* | | | | Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case of | Serhiy Storchaka | 2015-03-30 | 1 | -7/+4 |
|\ \ \ \ | |/ / / | | | | | | | | | MemoryError. | ||||
| * | | | Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case of | Serhiy Storchaka | 2015-03-30 | 1 | -7/+4 |
| | | | | | | | | | | | | | | | | MemoryError. | ||||
| * | | | Issue #23803: Fixed str.partition() and str.rpartition() when a separator | Serhiy Storchaka | 2015-03-29 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | is wider then partitioned string. | ||||
| * | | | Issue #22079: Deprecation warning now is issued in PyType_Ready() instead of | Serhiy Storchaka | 2015-03-22 | 1 | -5/+8 |
| | | | | | | | | | | | | | | | | | | | | raising TypeError when statically allocated type subclasses dynamically allocated type | ||||
* | | | | Issue #23466: %c, %o, %x, and %X in bytes formatting now raise TypeError on | Serhiy Storchaka | 2015-03-30 | 1 | -26/+55 |
| | | | | | | | | | | | | | | | | non-integer input. | ||||
* | | | | _PyUnicodeWriter_WriteStr() now checks that the input string is consistent | Victor Stinner | 2015-03-26 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | in debug mode to detect bugs earlier. _PyUnicodeWriter_Finish() doesn't check if the read only string is consistent, whereas it does check consistency for strings built by itself. | ||||
* | | | | Issue #23573: Fix bytes.rfind() and bytearray.rfind() on Windows | Victor Stinner | 2015-03-25 | 2 | -2/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows has no memrchr() function. This change is only a workaround, the optimization must be reenabled on other platforms. | ||||
* | | | | Issue #23573: Increased performance of string search operations (str.find, | Serhiy Storchaka | 2015-03-24 | 5 | -193/+244 |
| | | | | | | | | | | | | | | | | | | | | str.index, str.count, the in operator, str.split, str.partition) with arguments of different kinds (UCS1, UCS2, UCS4). | ||||
* | | | | Issue #23571: Enhance _Py_CheckFunctionResult() | Victor Stinner | 2015-03-24 | 1 | -9/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Too bad, sometimes Py_FatalError() is unable to write the exception into sys.stderr (on "AMD64 OpenIndiana 3.x" buildbot, the buildbot was probably out of memory). Call Py_FatalError() with a different message for the two cases (result+error, or no result and no error). | ||||
* | | | | stdprinter_write(): mention the encoding | Victor Stinner | 2015-03-24 | 1 | -3/+4 |
| | | | | |||||
* | | | | Issue #23571: In debug mode, _Py_CheckFunctionResult() now calls | Victor Stinner | 2015-03-24 | 1 | -12/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | Py_FatalError() instead of using an assertion in debug mode. Py_FatalError() displays the current exception and the traceback which contain more information than just the assertion error. | ||||
* | | | | Issue #23571: _Py_CheckFunctionResult() now gives the name of the function | Victor Stinner | 2015-03-21 | 2 | -7/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which returned an invalid result (result+error or no result without error) in the exception message. Add also unit test to check that the exception contains the name of the function. Special case: the final _PyEval_EvalFrameEx() check doesn't mention the function since it didn't execute a single function but a whole frame. | ||||
* | | | | Issue #23681: The -b option now affects comparisons of bytes with int. | Serhiy Storchaka | 2015-03-20 | 1 | -8/+17 |
| | | | | |||||
* | | | | Fix compiler warnings: comparison between signed and unsigned numbers | Victor Stinner | 2015-03-20 | 1 | -1/+1 |
| | | | | |||||
* | | | | Merge | Antoine Pitrou | 2015-03-19 | 1 | -17/+6 |
|\ \ \ \ | |||||
| * | | | | Issue #23708: Add _Py_read() and _Py_write() functions to factorize code handle | Victor Stinner | 2015-03-19 | 1 | -17/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EINTR error and special cases for Windows. These functions now truncate the length to PY_SSIZE_T_MAX to have a portable and reliable behaviour. For example, read() result is undefined if counter is greater than PY_SSIZE_T_MAX on Linux. | ||||
* | | | | | Issue #23632: Memoryviews now allow tuple indexing (including for ↵ | Antoine Pitrou | 2015-03-19 | 1 | -29/+120 |
|/ / / / | | | | | | | | | | | | | multi-dimensional memoryviews). | ||||
* | | | | Removed unintentional trailing spaces in non-external and non-generated C files. | Serhiy Storchaka | 2015-03-18 | 7 | -10/+10 |
| | | | | |||||
* | | | | Initialize variables to prevent GCC warnings | Victor Stinner | 2015-03-18 | 1 | -15/+20 |
| | | | | |||||
* | | | | Close issue23467: add %r compatibility to bytes and bytearray | Ethan Furman | 2015-03-11 | 1 | -0/+2 |
| | | | | |||||
* | | | | Issue #23629: Fix the default __sizeof__ implementation for variable-sized ↵ | Antoine Pitrou | 2015-03-10 | 3 | -50/+1 |
|\ \ \ \ | |/ / / | | | | | | | | | objects. | ||||
| * | | | Issue #23629: Fix the default __sizeof__ implementation for variable-sized ↵ | Antoine Pitrou | 2015-03-10 | 3 | -27/+1 |
| | | | | | | | | | | | | | | | | objects. | ||||
* | | | | Issue #23571: Oops, fix #ifdef assert() | Victor Stinner | 2015-03-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | assert() are noop when NDEBUG is defined. We want the opposite. | ||||
* | | | | Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() now | Victor Stinner | 2015-03-06 | 2 | -69/+105 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raise a SystemError if a function returns a result and raises an exception. The SystemError is chained to the previous exception. Refactor also PyObject_Call() and PyCFunction_Call() to make them more readable. Remove some checks which became useless (duplicate checks). Change reviewed by Serhiy Storchaka. |