Nybblista
3ae67ba97e
gh-131339: test PyBytes_Size for a zero-size bytes object ( #131340 )
2025-03-17 11:38:37 +03:00
Victor Stinner
3d60dfbe17
gh-121645: Add PyBytes_Join() function ( #121646 )
...
* Replace _PyBytes_Join() with PyBytes_Join().
* Keep _PyBytes_Join() as an alias to PyBytes_Join().
2024-08-30 12:57:33 +00:00
sobolevn
f6c7d8d79c
gh-121842: Improve coverage of `PyBytes_FromStringAndSize` ( #121843 )
2024-07-17 10:00:07 +03:00
Serhiy Storchaka
0c1a42cf9c
gh-87193: Support bytes objects with refcount > 1 in _PyBytes_Resize() (GH-117160)
...
Create a new bytes object and destroy the old one if it has refcount > 1.
2024-03-25 16:32:11 +01:00
Victor Stinner
1cc02ca063
gh-116417: Move 4 limited C API test files to _testlimitedcapi ( #116571 )
...
Move the following files from Modules/_testcapi/ to
Modules/_testlimitedcapi/:
* bytearray.c
* bytes.c
* pyos.c
* sys.c
Changes:
* Replace PyBytes_AS_STRING() with PyBytes_AsString().
* Replace PyBytes_GET_SIZE() with PyBytes_Size().
* Update related test_capi tests.
* Copy Modules/_testcapi/util.h to Modules/_testlimitedcapi/util.h.
2024-03-11 10:28:16 +00:00
Serhiy Storchaka
a8e1f474c2
gh-111495: Test C API functions with extreme sizes and indices (GH-111631)
2023-11-04 11:40:46 +02:00
Serhiy Storchaka
97b3cd38d1
gh-111495: Add tests for PyBytes and PyByteArray C API (GH-111496)
2023-11-01 17:31:07 +02:00