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

Commit e093c8d

Browse files
author
Anselm Kruis
committed
Not to be pushed: diffs to PR #198 and #199
1 parent 74b1fc5 commit e093c8d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Doc/c-api/stackless.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@ To call it use
553553
:start-after: /*DO-NOT-REMOVE-OR-MODIFY-THIS-MARKER:ssf-example-start*/
554554
:end-before: /*DO-NOT-REMOVE-OR-MODIFY-THIS-MARKER:ssf-example-end*/
555555
556+
Another, more realistic example is :py:const:`_asyncio._task_step_impl_stackless`, defined in
557+
"Modules/_asynciomodules.c".
558+
556559
557560
.. [#] Actually "_PyStackless_TRY_STACKLESS" is a macro that expands to a C L-value. As long as
558561
|CPY| uses the GIL, this L-value is a global variable.

Modules/_asynciomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,7 @@ task_step_impl_stackless(PyObject *retval, long *step, PyObject **ob1, PyObject
25402540
static PyStacklessFunctionDeclarationObject task_step_impl_declaration = {
25412541
PyObject_HEAD_INIT(NULL)
25422542
task_step_impl_stackless,
2543-
"task_step_impl_stackless"
2543+
"_task_step_impl_stackless"
25442544
};
25452545

25462546
static PyObject *

0 commit comments

Comments
 (0)