From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 19 Jun 2024 04:15:44 +0000 (+0200) Subject: [3.13] gh-120496: Add a note about iterator thread-safe (gh-120685) (#120706) X-Git-Tag: v3.13.0b3~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b028117d17a3e2722a416ddd993ffaafe4c982b;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-120496: Add a note about iterator thread-safe (gh-120685) (#120706) gh-120496: Add a note about iterator thread-safe (gh-120685) (cherry picked from commit 7e189aed6450c0aebcdd6ff6aefe29e2f45b173a) Co-authored-by: Donghee Na --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index ae9949bc2867..bacbf66b4335 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -694,6 +694,9 @@ Glossary CPython does not consistently apply the requirement that an iterator define :meth:`~iterator.__iter__`. + And also please note that the free-threading CPython does not guarantee + the thread-safety of iterator operations. + key function A key function or collation function is a callable that returns a value