You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal API _PyBytes_Join() is removed in Python 3.13 #30
The internal CPython API function _PyBytes_Join() is removed in Python 3.13. You will need to find a substitute.
The most straightforward workaround is to just call the Python bytes.join method on the empty bytestring object we already have. Since this call happens only once at the end of GzipReader_readall, I suspect any added overhead should be negligible. I’ve tested this fix and will follow up with a PR.
Activity
rhpvorderman commentedon Jan 23, 2024
Let me think about this for a bit. The alternative is to use _PyBytes_Resize on a bytes object.
Thanks for reporting the issue.
musicinmybrain commentedon Jan 23, 2024
OK! Since
_PyBytes_Resizeis documented, it is safe from this round of API removals even though it’s “private.”