8000 Stackless issue #237: Fix doc-string of tasklet.throw · stackless-dev/stackless@17f9446 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 17f9446

Browse files
author
Anselm Kruis
committed
Stackless issue #237: Fix doc-string of tasklet.throw
The 4th argument has been changed from immediate=True to pending=False a long time ago. (cherry picked from commit 12b78b0)
1 parent c64f2db commit 17f9446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Stackless/module/taskletobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ tasklet_setup(PyObject *self, PyObject *args, PyObject *kwds)
11241124

11251125

11261126
PyDoc_STRVAR(tasklet_throw__doc__,
1127-
"tasklet.throw(exc, val=None, tb=None, immediate=True) -- raise an exception for the tasklet.\n\
1127+
"tasklet.throw(exc, val=None, tb=None, pending=False) -- raise an exception for the tasklet.\n\
11281128
'exc', 'val' and 'tb' have the same semantics as the 'raise' statement of the Python(r) language.\n\
11291129
If 'pending' is True, the tasklet is not immediately activated, just\n\
11301130
merely made runnable, ready to raise the exception when run.");

0 commit comments

Comments
 (0)
0