Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(io): preserve detach state update order
  • Loading branch information
ashm-dev committed Oct 7, 2026
commit aa9a1794ec25fbbb7e0bb7283fa595d2448f4710
2 changes: 1 addition & 1 deletion Modules/_io/textio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1643,8 +1643,8 @@ _io_TextIOWrapper_detach_impl(textio *self)
if (buffer == NULL) {
return NULL;
}
self->detached = 1;
Py_CLEAR(self->buffer);
Comment thread
ashm-dev marked this conversation as resolved.
self->detached = 1;
return buffer;
}

Expand Down
Loading