cpython/Modules/_io
Victor Stinner c84029179c
gh-101819: Prepare to modernize the _io extension (#104178)
* 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>
2023-05-06 01:53:55 +02:00
..
clinic gh-101819: Prepare to modernize the _io extension (#104178) 2023-05-06 01:53:55 +02:00
_iomodule.c gh-101819: Prepare to modernize the _io extension (#104178) 2023-05-06 01:53:55 +02:00
_iomodule.h gh-101819: Prepare to modernize the _io extension (#104178) 2023-05-06 01:53:55 +02:00
bufferedio.c gh-101819: Prepare to modernize the _io extension (#104178) 2023-05-06 01:53:55 +02:00
bytesio.c gh-101819: Prepare to modernize the _io extension (#104178) 2023-05-06 01:53:55 +02:00
fileio.c gh-101819: Prepare to modernize the _io extension (#104178) 2023-05-06 01:53:55 +02:00
iobase.c gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives (in Modules/) (#102196) 2023-02-24 21:43:03 +00:00
stringio.c gh-101819: Prepare to modernize the _io extension (#104178) 2023-05-06 01:53:55 +02:00
textio.c gh-101819: Prepare to modernize the _io extension (#104178) 2023-05-06 01:53:55 +02:00
winconsoleio.c gh-102255: Improve build support for Windows API partitions (GH-102256) 2023-03-09 21:09:12 +00:00