-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C API] Add PyBytes_Join() function #121645
Comments
A code search on PyPI top 7,500 projects found 6 projects using the private
|
Sorry, I forgot to add a reference to the mypy issue: issue gh-121489. |
Additionally, many repositories use |
IMO _PyBytes_Resize() is a bad pattern, it uses a bytes object which is incomplete/inconsistent: see capi-workgroup/api-evolution#36. Instead, I created #121710: [C API] Add PyBytesWriter API. |
* Replace _PyBytes_Join() with PyBytes_Join(). * Keep _PyBytes_Join() as an alias to PyBytes_Join().
* Replace _PyBytes_Join() with PyBytes_Join(). * Keep _PyBytes_Join() as an alias to PyBytes_Join().
Implemented by the change 3d60dfb. |
Use functions added for Python 3.14 * `PyBytes_Join` added in python/cpython#121645 * `PyUnicode_Equal` added in python/cpython#124502
Use functions added for Python 3.14 * `PyBytes_Join` added in python/cpython#121645 * `PyUnicode_Equal` added in python/cpython#124502
Feature or enhancement
Python 3.13 alpha 1 removed the private
_PyBytes_Join(sep, iterable)
function which callssep.join(iterable)
.mypyc uses it. Since we already have
PyUnicode_Join(sep, iterable)
, I propose to add a newPyBytes_Join()
function.In practice, it's just about renaming
_PyBytes_Join()
toPyBytes_Join()
.Linked PRs
The text was updated successfully, but these errors were encountered: