Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add the const qualifier to "char *" variables that refer to literal strings. ↵ | Serhiy Storchaka | 2017-11-11 | 1 | -6/+9 |
| | | | | (#4370) | ||||
* | bpo-23699: Use a macro to reduce boilerplate code in rich comparison ↵ | stratakis | 2017-11-02 | 1 | -26/+11 |
| | | | | functions (GH-793) | ||||
* | bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158) | Serhiy Storchaka | 2017-10-28 | 1 | -12/+34 |
| | | | separators that are not bytes-like objects. | ||||
* | bpo-27541: Reprs of subclasses of some classes now contain actual type name. ↵ | Serhiy Storchaka | 2017-09-21 | 1 | -6/+10 |
| | | | | | (#3631) Affected classes are bytearray, array, deque, defaultdict, count and repeat. | ||||
* | 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). | ||||
* | bpo-31279: Silence -Wstringop-overflow warning. (#3207) | Stefan Krah | 2017-08-25 | 1 | -1/+1 |
| | |||||
* | Expand the PySlice_GetIndicesEx macro. (#1023) | Serhiy Storchaka | 2017-04-08 | 1 | -6/+6 |
| | |||||
* | bpo-29116: Fix error messages for concatenating bytes and bytearray with ↵ | Serhiy Storchaka | 2017-03-19 | 1 | -1/+1 |
| | | | | unsupported type. (#709) | ||||
* | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -2/+2 |
| | |||||
* | Merge 3.6 | INADA Naoki | 2017-01-06 | 1 | -9/+13 |
|\ | |||||
| * | Issue #29159: Fix regression in bytes(x) when x.__index__() raises Exception. | INADA Naoki | 2017-01-06 | 1 | -9/+13 |
| | | |||||
* | | Backed out changeset b9c9691c72c5 | Victor Stinner | 2016-12-04 | 1 | -2/+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/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -1/+1 |
| | |||||
* | Issue #27506: Support bytes/bytearray.translate() delete as keyword argument | Martin Panter | 2016-08-27 | 1 | -8/+5 |
| | | | | 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 #27507: Merge overflow check from 3.5 | Martin Panter | 2016-07-18 | 1 | -1/+11 |
|\ | |||||
| * | Issue #27507: Check for integer overflow in bytearray.extend() | Martin Panter | 2016-07-18 | 1 | -1/+11 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | Issue #27473: Fixed possible integer overflow in bytes and bytearray | Serhiy Storchaka | 2016-07-10 | 1 | -12/+9 |
|\ \ | |/ | | | | | concatenations. Patch by Xiang Zhang. | ||||
| * | Issue #27473: Fixed possible integer overflow in bytes and bytearray | Serhiy Storchaka | 2016-07-10 | 1 | -12/+9 |
| | | | | | | | | concatenations. Patch by Xiang Zhang. | ||||
* | | Issue #27443: __length_hint__() of bytearray itearator no longer return | Serhiy Storchaka | 2016-07-03 | 1 | -1/+5 |
|\ \ | |/ | | | | | negative integer for resized bytearray. | ||||
| * | Issue #27443: __length_hint__() of bytearray itearator no longer return | Serhiy Storchaka | 2016-07-03 | 1 | -1/+5 |
| | | | | | | | | negative integer for resized bytearray. | ||||
* | | Backed out changeset b0087e17cd5e (issue #26765) | Serhiy Storchaka | 2016-07-03 | 1 | -12/+67 |
| | | | | | | | | 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 | -67/+12 |
| | | | | | | | | file. | ||||
* | | Issue #27007: The fromhex() class methods of bytes and bytearray subclasses | Serhiy Storchaka | 2016-07-01 | 1 | -4/+8 |
| | | | | | | | | now return an instance of corresponding subclass. | ||||
* | | Issue #27039: Fixed bytearray.remove() for values greater than 127. | Serhiy Storchaka | 2016-05-16 | 1 | -5/+2 |
|\ \ | |/ | | | | | Based on patch by Joe Jevnik. | ||||
| * | Issue #27039: Fixed bytearray.remove() for values greater than 127. | Serhiy Storchaka | 2016-05-16 | 1 | -7/+4 |
| | | | | | | | | Patch by Joe Jevnik. | ||||
* | | Issue #26765: Moved common code for the replace() method of bytes and bytearray | Serhiy Storchaka | 2016-05-05 | 1 | -500/+3 |
| | | | | | | | | to a template file. | ||||
* | | Issue #26765: Moved common code and docstrings for bytes and bytearray methods | Serhiy Storchaka | 2016-05-04 | 1 | -328/+24 |
| | | | | | | | | to bytes_methods.c. | ||||
* | | Got rid of redundand "self" parameter declarations. | Serhiy Storchaka | 2016-05-02 | 1 | -33/+14 |
| | | | | | | | | Argument Clinic is now able to infer all needed information. | ||||
* | | Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
|\ \ | |/ | | | | | messages. | ||||
| * | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 1 | -1/+1 |
| | | |||||
* | | Issue #26766: Remove redundant bytearray_format() from bytearrayobject.c | Berker Peksag | 2016-04-15 | 1 | -14/+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. | ||||
* | | Oops, revert unwanted change used to create an example | Victor Stinner | 2016-03-15 | 1 | -1/+0 |
| | | | | | | | | Issue #26564. | ||||
* | | On memory error, dump the memory block traceback | Victor Stinner | 2016-03-15 | 1 | -0/+1 |
| | | | | | | | | | | | | Issue #26564: _PyObject_DebugDumpAddress() now dumps the traceback where a memory block was allocated on memory block. Use the tracemalloc module to get the traceback. | ||||
* | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -4/+4 |
| | | | | | | | | private functions. | ||||
* | | Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. | Serhiy Storchaka | 2015-12-19 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. | ||||
| * | Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. | Serhiy Storchaka | 2015-12-19 | 1 | -1/+1 |
| | | | | | | | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. | ||||
* | | Issue #24821: Refactor STRINGLIB(fastsearch_memchr_1char) and split it on | Serhiy Storchaka | 2015-11-14 | 1 | -10/+9 |
| | | | | | | | | | | STRINGLIB(find_char) and STRINGLIB(rfind_char) that can be used independedly without special preconditions. | ||||
* | | Issue #25401: Remove now unused hex_digit_to_int() function | Victor Stinner | 2015-10-14 | 1 | -16/+0 |
| | | |||||
* | | Optimize bytes.fromhex() and bytearray.fromhex() | Victor Stinner | 2015-10-14 | 1 | -42/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | Issue #25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now between 2x and 3.5x faster. Changes: * Use a fast-path working on a char* string for ASCII string * Use a slow-path for non-ASCII string * Replace slow hex_digit_to_int() function with a O(1) lookup in _PyLong_DigitValue precomputed table * Use _PyBytesWriter API to handle the buffer * Add unit tests to check the error position in error messages | ||||
* | | Optimize bytearray % args | Victor Stinner | 2015-10-14 | 1 | -17/+5 |
|/ | | | | | | | | | | | | | | Issue #25399: Don't create temporary bytes objects: modify _PyBytes_Format() to create work directly on bytearray objects. * Rename _PyBytes_Format() to _PyBytes_FormatEx() just in case if something outside CPython uses it * _PyBytes_FormatEx() now uses (char*, Py_ssize_t) for the input string, so bytearray_format() doesn't need tot create a temporary input bytes object * Add use_bytearray parameter to _PyBytes_FormatEx() which is passed to _PyBytesWriter, to create a bytearray buffer instead of a bytes buffer Most formatting operations are now between 2.5 and 5 times faster. | ||||
* | Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind() | Serhiy Storchaka | 2015-07-20 | 1 | -3/+7 |
| | | | | for single-byte argument on Linux. | ||||
* | 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. | ||||
* | | Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), | Serhiy Storchaka | 2015-05-30 | 1 | -3/+7 |
|\ \ | |/ | | | | | | | PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() to check for and handle errors correctly. |