Sitelet https://github.com/python/cpython/issues/94169
Skip to content

Remove io.OpenWrapper, deprecated in Python 3.10 #94169

Description

@vstinner

Since Python 3.10, io.OpenWrapper is no longer needed: just use open(). See issue #87846 for the long rationale. I modified staticmethod() in Python 3.10, so a static method is now a callable object.

It was deprecated in 2 Python versions (3.10 and 3.11), so it can now be removed (PEP 387).

I'm writing a PR to remove it.

Activity

  1. vstinner commented on Jun 23, 2022

    @vstinner
    MemberAuthor

    Static methods were made callable in issue #87848. See also the python-dev thread: https://mail.python.org/archives/list/python-dev@python.org/thread/QZ7SFW3IW3S2C5RMRJZOOUFSHHUINNME/

  2. added a commit that references this issue on Jun 24, 2022
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

    topic-IOtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions