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

Commit 8a44a5f

Browse files
Anselm KruisAnselm Kruis
Anselm Kruis
authored and
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.
1 parent d377c06 commit 8a44a5f

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
@@ -10,6 +10,11 @@ What's New in Stackless 2.7.XX?
1010

1111
*Release date: XXXX-XX-XX*
1212

13+
- https://github.com/stackless-dev/stackless/issues/167
14+
Replace 'printf(...)' calls by PySys_WriteStderr(...). They are used to emit
15+
an error message, if there is a pending error while entering Stackless
16+
subsystem.
17+
1318
- https://github.com/stackless-dev/stackless/issues/166
1419
Fix C-API functions PyEval_EvalFrameEx() and PyEval_EvalFrame().
1520
They are now compatible with C-Python.

Stackless/module/scheduling.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,9 +1296,9 @@ slp_initialize_main_and_current(void)
12961296
Py_XINCREF(value);
12971297
Py_XINCREF(traceback);
12981298
PyErr_Restore(type, value, traceback);
1299-
printf("Pending error while entering Stackless subsystem:\n");
1299+
PySys_WriteStderr("Pending error while entering Stackless subsystem:\n");
13001300
PyErr_Print();
1301-
printf("Above exception is re-raised to the caller.\n");
1301+
PySys_WriteStderr("Above exception is re-raised to the caller.\n");
13021302
PyErr_Restore(type, value, traceback);
13031303
#endif
13041304
return 1;

0 commit comments

Comments
 (0)