gh-120496: Add a note about iterator thread-safe (gh-120685)

This commit is contained in:
Donghee Na 2024-06-19 00:37:34 +09:00 committed by GitHub
parent 1035fe0cfb
commit 7e189aed64
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