Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-30860: Consolidate stateful runtime globals. (#3397) | Eric Snow | 2017-09-08 | 1 | -0/+2 |
| | | | | | | | * group the (stateful) runtime globals into various topical structs * consolidate the topical structs under a single top-level _PyRuntimeState struct * add a check-c-globals.py script that helps identify runtime globals Other globals are excluded (see globals.txt and check-c-globals.py). | ||||
* | Expand the PySlice_GetIndicesEx macro. (#1023) | Serhiy Storchaka | 2017-04-08 | 1 | -3/+3 |
| | |||||
* | bpo-29116: Fix error messages for concatenating bytes and bytearray with ↵ | Serhiy Storchaka | 2017-03-19 | 1 | -1/+1 |
| | | | | unsupported type. (#709) | ||||
* | bpo-28856: Let %b format for bytes support objects that follow the buffer ↵ | Xiang Zhang | 2017-03-14 | 1 | -1/+14 |
| | | | | | | protocol (GH-546) | ||||
* | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -2/+2 |
| | |||||
* | bpo-29568: Disable any characters between two percents for escaped percent ↵ | Serhiy Storchaka | 2017-03-08 | 1 | -10/+10 |
| | | | | "%%" in the format string for classic string formatting. (GH-513) | ||||
* | bpo-29714: Fix a regression that bytes format may fail when containing zero ↵ | Xiang Zhang | 2017-03-06 | 1 | -2/+2 |
| | | | | bytes inside. (GH-499) | ||||
* | Merge 3.6 | INADA Naoki | 2017-01-06 | 1 | -8/+12 |
|\ | |||||
| * | Issue #29159: Fix regression in bytes(x) when x.__index__() raises Exception. | INADA Naoki | 2017-01-06 | 1 | -8/+12 |
| | | |||||
* | | Issue #28927: bytes.fromhex() and bytearray.fromhex() now ignore all ASCII | Serhiy Storchaka | 2016-12-19 | 1 | -2/+2 |
| | | | | | | | | whitespace, not only spaces. Patch by Robert Xiao. | ||||
* | | Issue #29000: Fixed bytes formatting of octals with zero padding in alternate | Serhiy Storchaka | 2016-12-17 | 1 | -3/+2 |
|\ \ | |/ | | | | | form. | ||||
| * | Issue #29000: Fixed bytes formatting of octals with zero padding in alternate | Serhiy Storchaka | 2016-12-17 | 1 | -3/+2 |
| |\ | | | | | | | | | | form. | ||||
| | * | Issue #29000: Fixed bytes formatting of octals with zero padding in alternate | Serhiy Storchaka | 2016-12-17 | 1 | -3/+2 |
| | | | | | | | | | | | | form. | ||||
| * | | Issue 28128: Print out better error/warning messages for invalid string ↵ | Eric V. Smith | 2016-10-31 | 1 | -4/+33 |
| | | | | | | | | | | | | escapes. Backport to 3.6. | ||||
* | | | Use _PyObject_CallNoArg() | Victor Stinner | 2016-12-06 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | Replace: PyObject_CallFunctionObjArgs(callable, NULL) with: _PyObject_CallNoArg(callable) | ||||
* | | | Backed out changeset b9c9691c72c5 | Victor Stinner | 2016-12-04 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | 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 | -4/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 #19569: Compiler warnings are now emitted if use most of deprecated | Serhiy Storchaka | 2016-11-20 | 1 | -4/+1 |
| | | | | | | | | | | | | functions. | ||||
* | | | Issue 28128: Print out better error/warning messages for invalid string escapes. | Eric V. Smith | 2016-10-31 | 1 | -4/+33 |
|/ / | |||||
* | | Issue #25270: Merge from 3.5 | Berker Peksag | 2016-09-16 | 1 | -5/+14 |
|\ \ | |/ | |||||
| * | Issue #25270: Prevent codecs.escape_encode() from raising SystemError when ↵ | Berker Peksag | 2016-09-16 | 1 | -5/+14 |
| | | | | | | | | an empty bytestring is passed | ||||
* | | Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵ | Christian Heimes | 2016-09-13 | 1 | -10/+10 |
| | | | | | | | | optimize memcpy(). | ||||
* | | remove all usage of Py_LOCAL | Benjamin Peterson | 2016-09-09 | 1 | -1/+1 |
| | | |||||
* | | #27364: Deprecate invalid escape strings in str/byutes. | R David Murray | 2016-09-08 | 1 | -1/+2 |
| | | | | | | | | Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter. | ||||
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -2/+2 |
| | | |||||
* | | Issue #27506: Support bytes/bytearray.translate() delete as keyword argument | Martin Panter | 2016-08-27 | 1 | -6/+4 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | Issue #27704: Optimized creating bytes and bytearray from byte-like objects | Serhiy Storchaka | 2016-08-15 | 1 | -10/+8 |
| | | | | | | | | | | and iterables. Speed up to 3 times for short objects. Original patch by Naoki Inada. | ||||
* | | Issue #27473: Fixed possible integer overflow in bytes and bytearray | Serhiy Storchaka | 2016-07-10 | 1 | -4/+2 |
|\ \ | |/ | | | | | concatenations. Patch by Xiang Zhang. | ||||
| * | Issue #27473: Fixed possible integer overflow in bytes and bytearray | Serhiy Storchaka | 2016-07-10 | 1 | -4/+2 |
| | | | | | | | | concatenations. Patch by Xiang Zhang. | ||||
* | | Issue #27460: Unified error messages in bytes constructor for integers | Serhiy Storchaka | 2016-07-06 | 1 | -2/+2 |
| | | | | | | | | in and out of the Py_ssize_t range. Patch by Xiang Zhang. | ||||
* | | Backed out changeset b0087e17cd5e (issue #26765) | Serhiy Storchaka | 2016-07-03 | 1 | -11/+71 |
| | | | | | | | | For unknown reasons it perhaps caused a crash on 32-bit Windows (issue #). | ||||
* | | Issue #26765: Moved wrappers for bytes and bytearray methods to common header | Serhiy Storchaka | 2016-07-01 | 1 | -71/+11 |
| | | | | | | | | file. | ||||
* | | Issue #27007: The fromhex() class methods of bytes and bytearray subclasses | Serhiy Storchaka | 2016-07-01 | 1 | -1/+6 |
| | | | | | | | | now return an instance of corresponding subclass. | ||||
* | | Issue #27125: Merge typo fixes from 3.5 | Martin Panter | 2016-05-30 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27125: Remove duplicated words from documentation and comments | Martin Panter | 2016-05-30 | 1 | -1/+1 |
| | | |||||
* | | Issue #26765: Moved common code for the replace() method of bytes and bytearray | Serhiy Storchaka | 2016-05-05 | 1 | -505/+3 |
| | | | | | | | | to a template file. | ||||
* | | Issue #26765: Moved common code and docstrings for bytes and bytearray methods | Serhiy Storchaka | 2016-05-04 | 1 | -336/+26 |
| | | | | | | | | to bytes_methods.c. | ||||
* | | Got rid of redundand "self" parameter declarations. | Serhiy Storchaka | 2016-05-02 | 1 | -26/+20 |
| | | | | | | | | Argument Clinic is now able to infer all needed information. | ||||
* | | Issue #25349, #26249: Fix memleak in formatfloat() | Victor Stinner | 2016-04-26 | 1 | -0/+1 |
| | | |||||
* | | Issue #26766: Fix _PyBytesWriter_Finish() | Victor Stinner | 2016-04-15 | 1 | -1/+6 |
| | | | | | | | | | | | | | | Return a bytearray object when bytearray is requested and when the small buffer is used. Fix also test_bytes: bytearray%args must return a bytearray type. | ||||
* | | Issue #26764: Fixed SystemError in bytes.__rmod__. | Serhiy Storchaka | 2016-04-15 | 1 | -6/+4 |
| | | |||||
* | | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -1/+1 |
|\ \ | |/ | | | | | in places where Py_DECREF was used. | ||||
| * | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -1/+1 |
| | | | | | | | | in places where Py_DECREF was used. | ||||
* | | Issue #17339: Improved TypeError message in bytes constructor. | Serhiy Storchaka | 2016-04-10 | 1 | -16/+15 |
| | | |||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
| | | |||||
* | | Issue #26494: Fixed crash on iterating exhausting iterators. | Serhiy Storchaka | 2016-03-30 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. | ||||
| * | Issue #26494: Fixed crash on iterating exhausting iterators. | Serhiy Storchaka | 2016-03-30 | 1 | -1/+1 |
| | | | | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. | ||||
* | | Optimize bytes.replace(b'', b'.') | Victor Stinner | 2016-03-21 | 1 | -9/+19 |
| | | | | | | | | | | Issue #26574: Optimize bytes.replace(b'', b'.') and bytearray.replace(b'', b'.'): up to 80% faster. Patch written by Josh Snider. | ||||
* | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 |
| | | | | | | | | private functions. |