cpython/Modules/_io
Sam Gross 324531df90
gh-111903: Add `@critical_section` directive to Argument Clinic. (#111904)
The `@critical_section` directive instructs Argument Clinic to generate calls
to `Py_BEGIN_CRITICAL_SECTION()` and `Py_END_CRITICAL_SECTION()` around the
bound function. In `--disable-gil` builds, these calls will lock and unlock
the `self` object. They are no-ops in the default build.

This is used in one place (`_io._Buffered.close`) as a demonstration.
Subsequent PRs will use it more widely in the `_io.Buffered` bindings.
2023-11-14 10:47:46 +00:00
..
clinic gh-111903: Add `@critical_section` directive to Argument Clinic. (#111904) 2023-11-14 10:47:46 +00:00
_iomodule.c gh-106320: Remove private _PyLong_Sign() (#108743) 2023-09-01 09:13:07 +02:00
_iomodule.h gh-101819: Isolate `_io` (#101948) 2023-05-15 09:26:27 +00:00
bufferedio.c gh-111903: Add `@critical_section` directive to Argument Clinic. (#111904) 2023-11-14 10:47:46 +00:00
bytesio.c gh-111174: Fix crash in getbuffer() called repeatedly for empty BytesIO (GH-111210) 2023-10-25 13:50:16 +03:00
fileio.c gh-110014: Include explicitly <unistd.h> header (#110155) 2023-09-30 20:06:45 +00:00
iobase.c gh-109611: Add convenient C API function _PyFile_Flush() (GH-109612) 2023-09-23 09:35:30 +03:00
stringio.c gh-106869: Use new PyMemberDef constant names (#106871) 2023-07-25 15:28:30 +02:00
textio.c Add private _PyUnicode_AsUTF8NoNUL() function (GH-111957) 2023-11-10 21:31:36 +02:00
winconsoleio.c gh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007) 2023-10-20 12:52:31 +01:00