| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. ↵ | Stefan Krah | 2017-08-21 | 1 | -2/+3 |
| | | | | | (#3157) | ||||
| * | bpo-22207: Add checks for possible integer overflows in unicodeobject.c. (#2623) | Serhiy Storchaka | 2017-07-11 | 1 | -6/+12 |
| | | | | Based on patch by Victor Stinner. | ||||
| * | [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) | Serhiy Storchaka | 2017-06-28 | 1 | -0/+14 |
| | | | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters. | ||||
| * | bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285) | Serhiy Storchaka | 2017-06-27 | 1 | -27/+22 |
| | | | | | | Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters. | ||||
| * | bpo-29802: Fix reference counting in module-level struct functions (#1213) | Serhiy Storchaka | 2017-04-20 | 1 | -0/+1 |
| | | | | | when pass arguments of wrong type. | ||||
| * | Expand the PySlice_GetIndicesEx macro. (#1023) | Serhiy Storchaka | 2017-04-08 | 1 | -2/+3 |
| | | |||||
| * | bpo-29549: Fixes docstring for str.index (#256) | Lisa Roach | 2017-04-04 | 1 | -2/+10 |
| | | | | | | | | | | | | | | | * Updates B.index documentation. * Updates str.index documentation, makes it Argument Clinic compatible. * Removes ArgumentClinic code. * Finishes string.index documentation. * Updates string.rindex documentation. * Documents B.rindex. | ||||
| * | bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. ↵ | Serhiy Storchaka | 2017-03-21 | 1 | -1/+2 |
| | | | | | (#748) | ||||
| * | bpo-29116: Improve error message for concatenating str with non-str. (#710) | Serhiy Storchaka | 2017-03-19 | 1 | -1/+10 |
| | | |||||
| * | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -2/+2 |
| | | |||||
| * | Use Py_RETURN_FALSE/Py_RETURN_TRUE rather than ↵ | Serhiy Storchaka | 2017-03-08 | 1 | -25/+25 |
| | | | | | PyBool_FromLong(0)/PyBool_FromLong(1). (#567) | ||||
| * | bpo-29568: Disable any characters between two percents for escaped percent ↵ | Serhiy Storchaka | 2017-03-08 | 1 | -7/+8 |
| | | | | | "%%" in the format string for classic string formatting. (GH-513) | ||||
| * | Fix grammar in doc string, RST markup | Martin Panter | 2017-01-24 | 1 | -2/+2 |
| | | |||||
| * | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -3/+1 |
| | | | | | possible. Patch is writen with Coccinelle. | ||||
| * | Issue #28769: The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() | Serhiy Storchaka | 2017-01-22 | 1 | -2/+2 |
| | | | | | is now of type "const char *" rather of "char *". | ||||
| * | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -2/+2 |
| | | | | | | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using "boring" positional arguments. Manually fix _elementtree: _elementtree_XMLParser_doctype() must remain consistent with the clinic code. | ||||
| * | Issue #20180: forgot to update AC output. | INADA Naoki | 2017-01-16 | 1 | -18/+18 |
| | | |||||
| * | Issue #20180: convert unicode methods to AC. | INADA Naoki | 2017-01-16 | 1 | -408/+511 |
| | | |||||
| * | Issue #29145: Merge 3.6. | Xiang Zhang | 2017-01-10 | 1 | -6/+8 |
| |\ | |||||
| | * | Issue #29145: Merge 3.5. | Xiang Zhang | 2017-01-10 | 1 | -6/+8 |
| | |\ | |||||
| | | * | Issue #29145: Fix overflow checks in str.replace() and str.join(). | Xiang Zhang | 2017-01-10 | 1 | -6/+8 |
| | | | | | | | | | | | | | Based on patch by Martin Panter. | ||||
| * | | | Issue #29044: Merge 3.6. | Xiang Zhang | 2016-12-22 | 1 | -3/+4 |
| |\ \ \ | |/ / | |||||
| | * | | Issue #29044: Merge 3.5. | Xiang Zhang | 2016-12-22 | 1 | -3/+4 |
| | |\ \ | | |/ | |||||
| | | * | Issue #29044: Fix a use-after-free in string '%c' formatter. | Xiang Zhang | 2016-12-22 | 1 | -3/+4 |
| | | | | |||||
| * | | | Issue #28822: Adjust indices handling of PyUnicode_FindChar(). | Xiang Zhang | 2016-12-20 | 1 | -8/+4 |
| | | | | |||||
| * | | | Merge 3.6. | Xavier de Gaye | 2016-12-15 | 1 | -3/+3 |
| |\ \ \ | |/ / | |||||
| | * | | Issue #26919: On Android, operating system data is now always encoded/decoded | Xavier de Gaye | 2016-12-15 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | to/from UTF-8, instead of the locale encoding to avoid inconsistencies with os.fsencode() and os.fsdecode() which are already using UTF-8. | ||||
| * | | | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-06 | 1 | -2/+16 |
| |\ \ \ | |/ / | |||||
| | * | | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-06 | 1 | -2/+16 |
| | |\ \ | | |/ | |||||
| | | * | Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions. | Serhiy Storchaka | 2016-12-06 | 1 | -2/+16 |
| | | | | |||||
| * | | | Backed out changeset b9c9691c72c5 | Victor Stinner | 2016-12-04 | 1 | -4/+6 |
| | | | | | | | | | | | | | | | | | | | Issue #28858: The change b9c9691c72c5 introduced a regression. It seems like _PyObject_CallArg1() uses more stack memory than PyObject_CallFunctionObjArgs(). | ||||
| * | | | Replace PyObject_CallFunctionObjArgs() with fastcall | Victor Stinner | 2016-12-01 | 1 | -6/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PyObject_CallFunctionObjArgs(func, NULL) => _PyObject_CallNoArg(func) * PyObject_CallFunctionObjArgs(func, arg, NULL) => _PyObject_CallArg1(func, arg) PyObject_CallFunctionObjArgs() allocates 40 bytes on the C stack and requires extra work to "parse" C arguments to build a C array of PyObject*. _PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate memory on the C stack. This change is part of the fastcall project. The change on listsort() is related to the issue #23507. | ||||
| * | | | Issue #28774: Simplified encoding a str result of an error handler in ASCII | Serhiy Storchaka | 2016-11-23 | 1 | -26/+12 |
| | | | | | | | | | | | | | and Latin1 encoders. | ||||
| * | | | Issue #28774: Fix start/end pos in unicode_encode_ucs1(). | Xiang Zhang | 2016-11-23 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | Fix error position of the unicode error in ASCII and Latin1 encoders when a string returned by the error handler contains multiple non-encodable characters (non-ASCII for the ASCII codec, characters out of the U+0000-U+00FF range for Latin1). | ||||
| * | | | Issue #28760: Clean up and fix comments in PyUnicode_AsUnicodeEscapeString(). | Serhiy Storchaka | 2016-11-21 | 1 | -10/+4 |
| |\ \ \ | |/ / | | | | | | | Patch by Xiang Zhang. | ||||
| | * | | Issue #28760: Clean up and fix comments in PyUnicode_AsUnicodeEscapeString(). | Serhiy Storchaka | 2016-11-21 | 1 | -10/+4 |
| | | | | | | | | | | | | | Patch by Xiang Zhang. | ||||
| * | | | Issue #19569: Compiler warnings are now emitted if use most of deprecated | Serhiy Storchaka | 2016-11-20 | 1 | -49/+45 |
| | | | | | | | | | | | | | functions. | ||||
| * | | | Issue #28701: _PyUnicode_EqualToASCIIId and _PyUnicode_EqualToASCIIString now | Serhiy Storchaka | 2016-11-16 | 1 | -0/+11 |
| |\ \ \ | |/ / | | | | | | | require ASCII right argument and assert this condition in debug build. | ||||
| | * | | Issue #28701: _PyUnicode_EqualToASCIIId and _PyUnicode_EqualToASCIIString now | Serhiy Storchaka | 2016-11-16 | 1 | -0/+11 |
| | | | | | | | | | | | | | require ASCII right argument and assert this condition in debug build. | ||||
| * | | | Fixed an off-by-one error in _PyUnicode_EqualToASCIIString (issue #28701). | Serhiy Storchaka | 2016-11-16 | 1 | -1/+1 |
| |\ \ \ | |/ / | |||||
| | * | | Fixed an off-by-one error in _PyUnicode_EqualToASCIIString (issue #28701). | Serhiy Storchaka | 2016-11-16 | 1 | -1/+1 |
| | |\ \ | | |/ | |||||
| | | * | Fixed an off-by-one error in _PyUnicode_EqualToASCIIString (issue #28701). | Serhiy Storchaka | 2016-11-16 | 1 | -1/+1 |
| | | | | |||||
| * | | | Issue #21449: Removed private function _PyUnicode_CompareWithId. | Serhiy Storchaka | 2016-11-16 | 1 | -9/+0 |
| |\ \ \ | |/ / | |||||
| | * | | Issue #21449: Removed private function _PyUnicode_CompareWithId. | Serhiy Storchaka | 2016-11-16 | 1 | -9/+0 |
| | | | | |||||
| * | | | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId. | Serhiy Storchaka | 2016-11-16 | 1 | -0/+38 |
| |\ \ \ | |/ / | | | | | | | | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang. | ||||
| | * | | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId. | Serhiy Storchaka | 2016-11-16 | 1 | -0/+38 |
| | |\ \ | | |/ | | | | | | | | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang. | ||||
| | | * | Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId. | Serhiy Storchaka | 2016-11-16 | 1 | -0/+38 |
| | | | | | | | | | | | | | | | | | | | The latter function is more readable, faster and doesn't raise exceptions. Based on patch by Xiang Zhang. | ||||
| * | | | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -0/+35 |
| |\ \ \ | |/ / | | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| | * | | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -0/+35 |
| | |\ \ | | |/ | | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| | | * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -0/+35 |
| | | | | | | | | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
