Skip to content

Internal API _PyBytes_Join() is removed in Python 3.13 #30

Description

@musicinmybrain

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.

See downstream Fedora Linux bug https://bugzilla.redhat.com/show_bug.cgi?id=2259627.

See also CPython issue python/cpython#106320 and specifically python/cpython#107144.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions