Skip to content

Commit 5b22dd8

Browse files
committed
Close python#19160: Inconsistent size for GIL release in hashlib
1 parent f5c499e commit 5b22dd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/hashlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ concatenation of the data fed to it so far using the :meth:`digest` or
4141
.. note::
4242

4343
For better multithreading performance, the Python :term:`GIL` is released for
44-
data larger than 2048 bytes at object creation or on update.
44+
data larger than 2047 bytes at object creation or on update.
4545

4646
.. note::
4747

@@ -132,7 +132,7 @@ A hash object has the following methods:
132132

133133
.. versionchanged:: 3.1
134134
The Python GIL is released to allow other threads to run while hash
135-
updates on data larger than 2048 bytes is taking place when using hash
135+
updates on data larger than 2047 bytes is taking place when using hash
136136
algorithms supplied by OpenSSL.
137137

138138

0 commit comments

Comments
 (0)