We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252e2f7 commit 5e4d174Copy full SHA for 5e4d174
1 file changed
Doc/library/bisect.rst
@@ -24,6 +24,16 @@ method to determine whether a value has been found. Instead, the
24
functions only call the :meth:`~object.__lt__` method and will return an insertion
25
point between values in an array.
26
27
+ .. note::
28
+
29
+ The functions in this module are not thread-safe. If multiple threads
30
+ concurrently use :mod:`bisect` functions on the same sequence, this
31
+ may result in undefined behaviour. Likewise, if the provided sequence
32
+ is mutated by a different thread while a :mod:`bisect` function
33
+ is operating on it, the result is undefined. For example, using
34
+ :py:func:`~bisect.insort_left` on the same list from multiple threads
35
+ may result in the list becoming unsorted.
36
37
.. _bisect functions:
38
39
The following functions are provided:
0 commit comments