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

Commit ef448f3

Browse files
author
Anselm Kruis
committed
Stackless issue #167: replace printf() by PySys_WriteStderr()
printf() was used to emit parts of an error message, if there is a pending error while entering Stackless subsystem. (cherry picked from commit 8a44a5f)
1 parent 89cd94c commit ef448f3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Stackless/changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ What's New in Stackless 3.X.X?
99

1010
*Release date: 20XX-XX-XX*
1111

12+
- https://github.com/stackless-dev/stackless/issues/167
13+
Replace 'printf(...)' calls by PySys_WriteStderr(...). They are used to emit
14+
an error message, if there is a pending error while entering Stackless
15+
subsystem.
16+
1217
- https://github.com/stackless-dev/stackless/issues/154
1318
Fix a minor bug in STACKLESS_PROMOTE_WRAPPER and STACKLESS_PROMOTE_METHOD.
1419

Stackless/module/scheduling.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,9 +1262,9 @@ slp_initialize_main_and_current(void)
12621262
Py_XINCREF(value);
12631263
Py_XINCREF(traceback);
12641264
PyErr_Restore(type, value, traceback);
1265-
printf("Pending error while entering Stackless subsystem:\n");
1265+
PySys_WriteStderr("Pending error while entering Stackless subsystem:\n");
12661266
PyErr_Print();
1267-
printf("Above exception is re-raised to the caller.\n");
1267+
PySys_WriteStderr("Above exception is re-raised to the caller.\n");
12681268
PyErr_Restore(type, value, traceback);
12691269
#endif
12701270
return 1;

0 commit comments

Comments
 (0)