Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 682c25a

Browse files
author
Skip Montanaro
committed
RET_SAVE references should be Py_BLOCK_THREADS references
1 parent ce88db0 commit 682c25a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Include/ceval.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ DL_IMPORT(int) Py_GetRecursionLimit(void);
5252
The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a
5353
{}-surrounded block.
5454
To leave the block in the middle (e.g., with return), you must insert
55-
a line containing RET_SAVE before the return, e.g.
55+
a line containing Py_BLOCK_THREADS before the return, e.g.
5656
5757
if (...premature_exit...) {
5858
Py_BLOCK_THREADS
@@ -70,7 +70,7 @@ DL_IMPORT(int) Py_GetRecursionLimit(void);
7070
Py_UNBLOCK_THREADS
7171
7272
For convenience, that the value of 'errno' is restored across
73-
Py_END_ALLOW_THREADS and RET_SAVE.
73+
Py_END_ALLOW_THREADS and Py_BLOCK_THREADS.
7474
7575
WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND
7676
Py_END_ALLOW_THREADS!!!

0 commit comments

Comments
 (0)