We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c188f5 commit c5e7b24Copy full SHA for c5e7b24
Modules/_io/textio.c
@@ -1622,8 +1622,8 @@ _textiowrapper_writeflush(textio *self)
1622
NOTE: this code relies on GIL / @critical_section. It needs to ensure
1623
state is "safe" before/after calls to other Python code.
1624
1625
- In particular _textiowrapper_writeflush() calls buffer.write(). That will
1626
- modify self->pending_bytes.
+ In particular during calls to `buffer.write` self->pending_bytes may be
+ modified by other threads.
1627
1628
At the end of this function either pending_bytes needs to be NULL _or_
1629
there needs to be an exception.
0 commit comments