[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 7e189aed64)

Co-authored-by: Donghee Na <donghee.na@python.org>
This commit is contained in:
Miss Islington (bot) 2024-06-19 06:15:44 +02:00 committed by GitHub
parent 50fa775e68
commit 1b028117d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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