From 670478951d74ac8f5b231ebb47eeee9952dfadec Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Wed, 19 Jun 2024 00:37:34 +0900 Subject: [PATCH] gh-120496: Add a note about iterator thread-safe (gh-120685) (cherry picked from commit 7e189aed6450c0aebcdd6ff6aefe29e2f45b173a) Co-authored-by: Donghee Na --- Doc/glossary.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index ae9949bc2867c4..bacbf66b433563 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