cpython/Misc/NEWS.d/next/Tools-Demos
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
..
2023-11-09-13-04-29.gh-issue-111903.7Prryr.rst gh-111903: Add @critical_section directive to Argument Clinic. (#111904) 2023-11-14 10:47:46 +00:00
README.rst Link to blurb on PyPI in the NEWS.d READMEs. (#3323) 2017-09-05 10:38:05 -07:00

Put news entry `blurb`_ files for the *Tools/Demos* section in this directory.

.. _blurb: https://pypi.org/project/blurb/