gh-101819: Port _io.PyBytesIOBuffer_Type to heap type by erlend-aasland · Pull Request #104264 · python/cpython · GitHub
Skip to content

gh-101819: Port _io.PyBytesIOBuffer_Type to heap type#104264

Merged
erlend-aasland merged 2 commits intopython:mainfrom
erlend-aasland:isolate-io/bytesiobuf
May 7, 2023
Merged

gh-101819: Port _io.PyBytesIOBuffer_Type to heap type#104264
erlend-aasland merged 2 commits intopython:mainfrom
erlend-aasland:isolate-io/bytesiobuf

Conversation

@erlend-aasland
Copy link
Copy Markdown
Contributor

@erlend-aasland erlend-aasland commented May 7, 2023

@bedevere-bot
Copy link
Copy Markdown

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label May 7, 2023
Comment thread Modules/_io/_iomodule.c Outdated

// PyRawIOBase_Type(PyIOBase_Type) subclasses
state->PyBytesIOBuffer_Type = (PyTypeObject *)Py_NewRef(&_PyBytesIOBuffer_Type);
ADD_TYPE(m, state->PyBytesIOBuffer_Type, &bytesiobuf_spec, NULL); // XXX: should be subclass of PyRawIOBase_Type?
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, I'll remove the XXX comment and move this line up to 753 when the refleak CI comes out green.

@erlend-aasland
Copy link
Copy Markdown
Contributor Author

@erlend-aasland erlend-aasland enabled auto-merge (squash) May 7, 2023 13:32
@erlend-aasland erlend-aasland merged commit 7a7eaff into python:main May 7, 2023
@erlend-aasland erlend-aasland deleted the isolate-io/bytesiobuf branch May 7, 2023 14:20
jbower-fb pushed a commit to jbower-fb/cpython that referenced this pull request May 8, 2023
Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review after the merge: LGTM.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants