Victor Stinner

Results 702 comments of Victor Stinner

I believe that this issue was fixed in the main branch. If not, open a new issue, or reopen the issue.

> @cmaloney closed this as completed Nov 3, 2024 Congrats :-)

Maybe you should document this optimization at: https://docs.python.org/dev/whatsnew/3.14.html#optimizations

> Marking this as a draft until https://github.com/python/cpython/pull/116458 has landed. This fix has landed in the main branch.

> mypyc uses it. A code search on PyPI top 7,500 projects found 6 projects using the private `_PyBytes_Join()` function: * Cython (3.0.9) * dbnd (1.0.22.9) * dulwich (0.21.7) *...

configure says: ``` checking for the platform triplet based on compiler characteristics... riscv64-linux-gnu checking perf trampoline... yes ```

> mypyc uses it Sorry, I forgot to add a reference to the mypy issue: issue gh-121489.

> Additionally, many repositories use _PyBytes_Resize as well. Perhaps that's something that should go public? IMO _PyBytes_Resize() is a bad pattern, it uses a bytes object which is incomplete/inconsistent: see...

Implemented by the change https://github.com/python/cpython/commit/3d60dfbe1755e00ab20d0ee81281886be77ad5da.