Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-116417: Move limited C API abstract.c tests to _testlimitedcapi (#116986) | Victor Stinner | 2024-03-19 | 1 | -8/+8 |
| | | | | | | | Split abstract.c and float.c tests of _testcapi into two parts: limited C API tests in _testlimitedcapi and non-limited C API tests in _testcapi. Update test_bytes and test_class. | ||||
* | gh-115323: Add meaningful error message for using bytearray.extend with str ↵ | Jay Ting | 2024-02-24 | 1 | -0/+7 |
| | | | | | | | | (#115332) Perform str check after TypeError is raised --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | ||||
* | gh-104231: Add more tests for str(), repr(), ascii(), and bytes() (GH-112551) | Serhiy Storchaka | 2023-11-30 | 1 | -22/+59 |
| | |||||
* | gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179) | Serhiy Storchaka | 2023-08-07 | 1 | -1/+1 |
| | | | | | | | | | | Cover all the Mapping Protocol, almost all the Sequence Protocol (except PySequence_Fast) and a part of the Object Protocol. Move existing tests to Lib/test/test_capi/test_abstract.py and Modules/_testcapi/abstract.c. Add also tests for PyDict C API. | ||||
* | gh-94808: Add coverage for bytesarray_setitem (#95802) | Michael Droettboom | 2022-10-10 | 1 | -41/+70 |
| | |||||
* | gh-94808: Improve coverage of _PyBytes_FormatEx (GH-95895) | Michael Droettboom | 2022-09-07 | 1 | -0/+18 |
| | | | | | | | | There were two specific areas not covered: - %(name) syntax - %*s syntax Automerge-Triggered-By: GH:iritkatriel | ||||
* | GH-91153: Handle mutating __index__ methods in bytearray item assignment ↵ | Brandt Bucher | 2022-07-19 | 1 | -0/+17 |
| | | | | (GH-94891) | ||||
* | bpo-26579: Add object.__getstate__(). (GH-2821) | Serhiy Storchaka | 2022-04-06 | 1 | -6/+14 |
| | | | | | | | Copying and pickling instances of subclasses of builtin types bytearray, set, frozenset, collections.OrderedDict, collections.deque, weakref.WeakSet, and datetime.tzinfo now copies and pickles instance attributes implemented as slots. | ||||
* | bpo-45668: Fix PGO tests without test extensions (GH-29315) | Christian Heimes | 2021-11-01 | 1 | -2/+2 |
| | |||||
* | Fix bytes.__bytes__ to not truncate at a zero byte (GH-27902) | Mark Dickinson | 2021-08-23 | 1 | -2/+2 |
| | |||||
* | bpo-24234: Implement bytes.__bytes__ (GH-27901) | Dong-hee Na | 2021-08-23 | 1 | -0/+12 |
| | |||||
* | bpo-44891: Tests `id` preserving on `* 1` for `str` and `bytes` (GH-27745) | Nikita Sobolev | 2021-08-13 | 1 | -0/+22 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) | Tobias Holl | 2021-01-13 | 1 | -0/+10 |
| | | | | Before, using the * operator to repeat a bytearray would copy data from the start of the internal buffer (ob_bytes) and not from the start of the actual data (ob_start). | ||||
* | bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) | Ronald Oussoren | 2020-11-08 | 1 | -0/+1 |
| | | | | | | | | | | | Co-authored-by: Lawrence D’Anna <lawrence_danna@apple.com> * Add support for macOS 11 and Apple Silicon (aka arm64) As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy * Support building on recent versions of macOS while deploying to older versions This allows building installers on macOS 11 while still supporting macOS 10.9. | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21772) | Hai Shi | 2020-08-07 | 1 | -2/+3 |
| | |||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21315) | Hai Shi | 2020-07-06 | 1 | -3/+4 |
| | |||||
* | bpo-36051: Drop GIL during large bytes.join() (GH-17757) | Bruce Merry | 2020-01-29 | 1 | -2/+6 |
| | | | | | Improve multi-threaded performance by dropping the GIL in the fast path of bytes.join. To avoid increasing overhead for small joins, it is only done if the output size exceeds a threshold. | ||||
* | bpo-37840: Fix handling of negative indices in bytearray_getitem() (GH-15250) | Sergey Fedoseev | 2019-09-09 | 1 | -0/+9 |
| | |||||
* | bpo-37388: Development mode check encoding and errors (GH-14341) | Victor Stinner | 2019-06-25 | 1 | -0/+58 |
| | | | | | | | | | In development mode and in debug build, encoding and errors arguments are now checked on string encoding and decoding operations. Examples: open(), str.encode() and bytes.decode(). By default, for best performances, the errors argument is only checked at the first encoding/decoding error, and the encoding argument is sometimes ignored for empty strings. | ||||
* | bpo-22385: Support output separators in hex methods. (#13578) | Gregory P. Smith | 2019-05-29 | 1 | -0/+57 |
| | | | | | | | | | | | | | | | | | | * bpo-22385: Support output separators in hex methods. Also in binascii.hexlify aka b2a_hex. The underlying implementation behind all hex generation in CPython uses the same pystrhex.c implementation. This adds support to bytes, bytearray, and memoryview objects. The binascii module functions exist rather than being slated for deprecation because they return bytes rather than requiring an intermediate step through a str object. This change was inspired by MicroPython which supports sep in its binascii implementation (and does not yet support the .hex methods). https://bugs.python.org/issue22385 | ||||
* | bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375) | Zackery Spytz | 2019-05-17 | 1 | -2/+3 |
| | | | | | | | The final addition (cur += step) may overflow, so use size_t for "cur". "cur" is always positive (even for negative steps), so it is safe to use size_t here. Co-Authored-By: Martin Panter <vadmium+py@gmail.com> | ||||
* | Fix syntax warnings in tests introduced in bpo-15248. (GH-11932) | Serhiy Storchaka | 2019-02-19 | 1 | -3/+5 |
| | |||||
* | bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516) | Serhiy Storchaka | 2019-01-12 | 1 | -0/+6 |
| | | | | Add also tests for PyUnicode_FromFormat() and PyBytes_FromFormat() with empty result. | ||||
* | bpo-34984: Improve error messages for bytes and bytearray constructors. ↵ | Serhiy Storchaka | 2018-10-21 | 1 | -0/+2 |
| | | | | (GH-9874) | ||||
* | bpo-34973: Fix crash in bytes constructor. (GH-9841) | Serhiy Storchaka | 2018-10-21 | 1 | -0/+17 |
| | | | Constructing bytes from mutating list could cause a crash. | ||||
* | bpo-34974: Do not replace unexpected errors in bytes() and bytearray(). ↵ | Serhiy Storchaka | 2018-10-14 | 1 | -2/+16 |
| | | | | | | | (GH-9852) bytes and bytearray constructors converted unexpected exceptions (e.g. MemoryError and KeyboardInterrupt) to TypeError. | ||||
* | Add new tests for bytes and bytearray constructors. (GH-9843) | Serhiy Storchaka | 2018-10-13 | 1 | -3/+43 |
| | | | | Covered all special cases: bytes, tuple, list, differend kinds of iterables and iterators. | ||||
* | bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158) | Serhiy Storchaka | 2017-10-28 | 1 | -6/+29 |
| | | | separators that are not bytes-like objects. | ||||
* | bpo-20552: Use specific asserts in bytes tests (#790) | Serhiy Storchaka | 2017-03-27 | 1 | -15/+15 |
| | |||||
* | bpo-29714: Fix a regression that bytes format may fail when containing zero ↵ | Xiang Zhang | 2017-03-06 | 1 | -0/+10 |
| | | | | bytes inside. (GH-499) | ||||
* | Merge 3.6 | INADA Naoki | 2017-01-06 | 1 | -0/+13 |
|\ | |||||
| * | Issue #29159: Fix regression in bytes(x) when x.__index__() raises Exception. | INADA Naoki | 2017-01-06 | 1 | -0/+13 |
| | | |||||
* | | Issue #28927: bytes.fromhex() and bytearray.fromhex() now ignore all ASCII | Serhiy Storchaka | 2016-12-19 | 1 | -0/+8 |
|/ | | | | whitespace, not only spaces. Patch by Robert Xiao. | ||||
* | Issue #28385: An error message when non-empty format spec is passed to | Serhiy Storchaka | 2016-10-30 | 1 | -0/+9 |
|\ | | | | | | | object.__format__ now contains the name of actual type. | ||||
| * | Issue #28385: An error message when non-empty format spec is passed to | Serhiy Storchaka | 2016-10-30 | 1 | -0/+9 |
| | | | | | | | | object.__format__ now contains the name of actual type. | ||||
* | | Remove old typo. | Serhiy Storchaka | 2016-09-08 | 1 | -1/+1 |
| | | | | | | | | | | Initially (e0b7e34b5971) it should be \udef0, but after 52a77ef069cd (issue #3672) lone surrogates are not accepted and should be removed. | ||||
* | | Issue #27506: Support bytes/bytearray.translate() delete as keyword argument | Martin Panter | 2016-08-27 | 1 | -18/+31 |
| | | | | | | | | Patch by Xiang Zhang. | ||||
* | | Anti-registration of various ABC methods. | Guido van Rossum | 2016-08-18 | 1 | -0/+30 |
| | | | | | | | | | | | | | | | | | | | | - Issue #25958: Support "anti-registration" of special methods from various ABCs, like __hash__, __iter__ or __len__. All these (and several more) can be set to None in an implementation class and the behavior will be as if the method is not defined at all. (Previously, this mechanism existed only for __hash__, to make mutable classes unhashable.) Code contributed by Andrew Barnert and Ivan Levkivskyi. | ||||
* | | Issue #27474: Unified error messages in the __contains__ method of bytes and | Serhiy Storchaka | 2016-07-10 | 1 | -0/+1 |
| | | | | | | | | | | bytearray for integers in and out of the Py_ssize_t range. Patch by Xiang Zhang. | ||||
* | | Issue #27443: __length_hint__() of bytearray itearator no longer return | Serhiy Storchaka | 2016-07-03 | 1 | -0/+10 |
|\ \ | |/ | | | | | negative integer for resized bytearray. | ||||
| * | Issue #27443: __length_hint__() of bytearray itearator no longer return | Serhiy Storchaka | 2016-07-03 | 1 | -0/+10 |
| | | | | | | | | negative integer for resized bytearray. | ||||
* | | Issue #27007: The fromhex() class methods of bytes and bytearray subclasses | Serhiy Storchaka | 2016-07-01 | 1 | -1/+26 |
| | | | | | | | | now return an instance of corresponding subclass. | ||||
* | | Issue #27039: Fixed bytearray.remove() for values greater than 127. | Serhiy Storchaka | 2016-05-16 | 1 | -0/+7 |
|\ \ | |/ | | | | | Based on patch by Joe Jevnik. | ||||
| * | Issue #27039: Fixed bytearray.remove() for values greater than 127. | Serhiy Storchaka | 2016-05-16 | 1 | -0/+7 |
| | | | | | | | | Patch by Joe Jevnik. | ||||
* | | Make bytes and bytearray subclass tests compatible with base types tests. | Serhiy Storchaka | 2016-05-12 | 1 | -15/+17 |
|\ \ | |/ | |||||
| * | Make bytes and bytearray subclass tests compatible with base types tests. | Serhiy Storchaka | 2016-05-12 | 1 | -15/+17 |
| | | |||||
| * | Issue #26764: Bacported tests for bytes formatting. | Serhiy Storchaka | 2016-04-15 | 1 | -26/+11 |
| | | |||||
* | | Issue #26766: Fix _PyBytesWriter_Finish() | Victor Stinner | 2016-04-15 | 1 | -2/+2 |
| | | | | | | | | | | | | | | 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 | -26/+11 |
| | | |||||
* | | Issue #26712: Merge string_tests cleanup from 3.5 | Martin Panter | 2016-04-10 | 1 | -87/+4 |
|\ \ | |/ |