Skip to content

Commit 697fb0a

Browse files
corona10mrahtz
authored andcommitted
pythongh-120496: Add a note about iterator thread-safe (pythongh-120685)
1 parent e5e61ea commit 697fb0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/glossary.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,9 @@ Glossary
694694

695695
CPython does not consistently apply the requirement that an iterator
696696
define :meth:`~iterator.__iter__`.
697+
And also please note that the free-threading CPython does not guarantee
698+
the thread-safety of iterator operations.
699+
697700

698701
key function
699702
A key function or collation function is a callable that returns a value

0 commit comments

Comments
 (0)