Skip to content
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

gh-101819: Prepare to modernize the _io extension #104178

Merged
merged 1 commit into from
May 5, 2023

Commits on May 5, 2023

  1. pythongh-101819: Prepare to modernize the _io extension

    * Add references to static types to _PyIO_State:
    
      * PyBufferedIOBase_Type
      * PyBytesIOBuffer_Type
      * PyIncrementalNewlineDecoder_Type
      * PyRawIOBase_Type
      * PyTextIOBase_Type
    
    * Add the defining class to methods:
    
      * _io.BytesIO.getbuffer()
      * _io.FileIO.close()
    
    * Add get_io_state_by_cls() function.
    * Add state parameter to _textiowrapper_decode()
    * _io_TextIOWrapper___init__() now sets self->state before calling
      _textiowrapper_set_decoder().
    
    Co-Authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    vstinner and erlend-aasland committed May 5, 2023
    Configuration menu
    Copy the full SHA
    dfc1e9e View commit details
    Browse the repository at this point in the history