Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Expand the PySlice_GetIndicesEx macro. (#1023) (#1045) | Serhiy Storchaka | 2017-04-08 | 1 | -6/+6 |
| | | | (cherry picked from commit b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8) | ||||
* | bpo-29116: Fix error messages for concatenating bytes and bytearray with ↵ | Serhiy Storchaka | 2017-03-19 | 1 | -1/+1 |
| | | | | | unsupported type. (#709) (#724) (cherry picked from commit 6b5a9ec4788770c652bac3bf5d5a0a3b710b82ae) | ||||
* | Issue #29073: bytearray formatting no longer truncates on first null byte. | Serhiy Storchaka | 2016-12-28 | 1 | -1/+3 |
| | |||||
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Martin Panter | 2016-09-07 | 1 | -1/+1 |
| | |||||
* | 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 #27443: __length_hint__() of bytearray itearator no longer return | Serhiy Storchaka | 2016-07-03 | 1 | -1/+5 |
| | | | | negative integer for resized bytearray. | ||||
* | Issue #27039: Fixed bytearray.remove() for values greater than 127. | Serhiy Storchaka | 2016-05-16 | 1 | -7/+4 |
| | | | | Patch by Joe Jevnik. | ||||
* | Issue #26778: Fixed "a/an/and" typos in code comment and documentation. | Serhiy Storchaka | 2016-04-17 | 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 #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 #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. | ||||
| * | 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. | ||||
* | | Specify default values of semantic booleans in Argument Clinic generated ↵ | Serhiy Storchaka | 2015-05-30 | 1 | -2/+2 |
| | | | | | | | | signatures as booleans. | ||||
* | | 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. | ||||
* | | Implements issue #9951: Adds a hex() method to bytes, bytearray, & memoryview. | Gregory P. Smith | 2015-04-25 | 1 | -0/+15 |
| | | | | | | | | | | | | | | Also updates a few internal implementations of the same thing to use the new built-in code. Contributed by Arnon Yaari. | ||||
* | | Remove local dead code. In both blocks dir is always greater 0. | Christian Heimes | 2015-04-18 | 1 | -2/+1 |
| | | |||||
* | | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -10/+15 |
| | | |||||
* | | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -729/+27 |
| | | |||||
* | | Issue #23573: Fix bytes.rfind() and bytearray.rfind() on Windows | Victor Stinner | 2015-03-25 | 1 | -1/+2 |
| | | | | | | | | | | | | | | 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 | 1 | -9/+24 |
| | | | | | | | | | | str.index, str.count, the in operator, str.split, str.partition) with arguments of different kinds (UCS1, UCS2, UCS4). | ||||
* | | Issue #14203: Remove obsolete support for view==NULL in PyBuffer_FillInfo() | Stefan Krah | 2015-02-03 | 1 | -8/+7 |
| | | | | | | | | | | and bytearray_getbuffer(). Both functions now raise BufferError in that case. | ||||
* | | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() | Serhiy Storchaka | 2015-02-03 | 1 | -80/+62 |
|\ \ | |/ | | | | | and PyObject_AsWriteBuffer(). | ||||
| * | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() | Serhiy Storchaka | 2015-02-03 | 1 | -58/+34 |
| | | | | | | | | and PyObject_AsWriteBuffer(). | ||||
* | | Issue20284: Implement PEP461 | Ethan Furman | 2015-01-23 | 1 | -1/+42 |
| | | |||||
* | | Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff ↵ | Antoine Pitrou | 2014-11-02 | 1 | -7/+14 |
|\ \ | |/ | | | | | bytes on a 32-bit platform. | ||||
| * | Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff ↵ | Antoine Pitrou | 2014-11-02 | 1 | -7/+14 |
| | | | | | | | | bytes on a 32-bit platform. | ||||
* | | #16518: Bring error messages in harmony with docs ("bytes-like object") | R David Murray | 2014-10-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | Some time ago we changed the docs to consistently use the term 'bytes-like object' in all the contexts where bytes, bytearray, memoryview, etc are used. This patch (by Ezio Melotti) completes that work by changing the error messages that previously reported that certain types did "not support the buffer interface" to instead say that a bytes-like object is required. (The glossary entry for bytes-like object references the discussion of the buffer protocol in the docs.) | ||||
* | | Issue #22077: Improve index error messages for bytearrays, bytes, lists, and | Terry Jan Reedy | 2014-08-02 | 1 | -2/+6 |
| | | | | | | | | | | tuples by adding 'or slices'. Added ', not <typename' for bytearrays. Original patch by Claudiu Popa. | ||||
* | | Rerun AC, silence pointer conversion warnings. | Martin v. Löwis | 2014-07-27 | 1 | -2/+2 |
| | | |||||
* | | Issue #20179: Apply Argument Clinic to bytes and bytearray. | Martin v. Löwis | 2014-07-27 | 1 | -323/+1149 |
| | | | | | | | | Patch by Tal Einat. | ||||
* | | Issue #21233: Revert bytearray(int) optimization using calloc() | Victor Stinner | 2014-06-02 | 1 | -14/+2 |
| | | |||||
* | | Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(), | Victor Stinner | 2014-05-02 | 1 | -2/+14 |
|/ | | | | | | PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now using ``calloc()`` instead of ``malloc()`` for large objects which is faster and use less memory (until the bytearray buffer is filled with data). | ||||
* | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 1 | -3/+7 |
|\ | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | ||||
| * | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 1 | -3/+7 |
| | | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | ||||
* | | Close #19568: Fix bytearray_setslice_linear(), fix handling of | Victor Stinner | 2013-11-21 | 1 | -37/+63 |
| | | | | | | | | | | | | | | | | | | | | PyByteArray_Resize() failure: leave the bytearray object in an consistent state. If growth < 0, handling the memory allocation failure is tricky here because the bytearray object has already been modified. If lo != 0, the operation is completed, but a MemoryError is still raised and the memory block is not shrinked. If lo == 0, the bytearray is restored in its previous state and a MemoryError is raised. | ||||
* | | #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs(). | Ezio Melotti | 2013-11-16 | 1 | -1/+1 |
| | | |||||
* | | Hopefully fix Windows compilation error following 499a96611baa | Antoine Pitrou | 2013-10-05 | 1 | -10/+10 |
| | | |||||
* | | Issue #19087: Improve bytearray allocation in order to allow cheap popping ↵ | Antoine Pitrou | 2013-10-05 | 1 | -145/+163 |
| | | | | | | | | of data at the front (slice deletion). | ||||
* | | Issue #18722: Remove uses of the "register" keyword in C code. | Antoine Pitrou | 2013-08-13 | 1 | -6/+6 |
| | | |||||
* | | Propagate error when PyByteArray_Resize() fails in bytearray_translate() | Christian Heimes | 2013-07-21 | 1 | -1/+4 |
|\ \ | |/ | | | | | CID 715334 | ||||
| * | Propagate error when PyByteArray_Resize() fails in bytearray_translate() | Christian Heimes | 2013-07-21 | 1 | -1/+4 |
| | | | | | | | | CID 715334 | ||||
* | | Fix compilation on Windows | Christian Heimes | 2012-11-03 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix compilation on Windows | Christian Heimes | 2012-11-03 | 1 | -1/+1 |
| |\ | |||||
| | * | Fix compilation on Windows | Christian Heimes | 2012-11-03 | 1 | -1/+1 |
| | | | |||||
| * | | #8401: merge with 3.2. | Ezio Melotti | 2012-11-03 | 1 | -0/+6 |
| |\ \ | | |/ |