diff options
author | Victor Stinner <vstinner@python.org> | 2023-05-06 01:53:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 01:53:55 +0200 |
commit | c84029179c3287f9c357ccac231fe78469c6f068 (patch) | |
tree | 4b30494f97bc9d71bb6381753e96441cbefc9dce /Lib/turtle.py | |
parent | 8b7f37dd4c297138e9f4a256ff6750cf1402b421 (diff) | |
download | cpython-c84029179c3287f9c357ccac231fe78469c6f068.tar.gz cpython-c84029179c3287f9c357ccac231fe78469c6f068.zip |
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>
Diffstat (limited to 'Lib/turtle.py')
0 files changed, 0 insertions, 0 deletions