From 7da3d140a1b466f1238171e05da1ba3abe2974a9 Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Tue, 18 Jun 2024 21:36:17 +0900 Subject: [PATCH 1/4] gh-120496: Add a note about iterator thread-safe --- Doc/glossary.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 8685369117fd87..2f2572b67f1475 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -695,6 +695,11 @@ Glossary CPython does not consistently apply the requirement that an iterator define :meth:`~iterator.__iter__`. + .. _free-threading-build:: + + Free-threading CPython does not guarantee the thread-safe. + + key function A key function or collation function is a callable that returns a value used for sorting or ordering. For example, :func:`locale.strxfrm` is From abe6019f95127d77c4250bf0e32cc31bbd0412f2 Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Tue, 18 Jun 2024 21:47:38 +0900 Subject: [PATCH 2/4] fix --- Doc/glossary.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 2f2572b67f1475..7f095696af249e 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -694,10 +694,8 @@ Glossary CPython does not consistently apply the requirement that an iterator define :meth:`~iterator.__iter__`. - - .. _free-threading-build:: - - Free-threading CPython does not guarantee the thread-safe. + And also please note that, the free-threading CPython does not guarantee + the thread-safe of iterator operations. key function From e7e46c19355e5084d798fc18672a239dfb36f885 Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Tue, 18 Jun 2024 21:48:34 +0900 Subject: [PATCH 3/4] nit --- Doc/glossary.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 7f095696af249e..41769fac47f475 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -694,7 +694,7 @@ 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 + And also please note that the free-threading CPython does not guarantee the thread-safe of iterator operations. From 855e75c5ff6a5425ffae85b4556143a1bc4bb3f8 Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Tue, 18 Jun 2024 21:58:04 +0900 Subject: [PATCH 4/4] Update Doc/glossary.rst Co-authored-by: Ken Jin --- Doc/glossary.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 41769fac47f475..281dde30dc78ed 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -695,7 +695,7 @@ 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-safe of iterator operations. + the thread-safety of iterator operations. key function