summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-10-30 18:34:07 (GMT)
committerGuido van Rossum <guido@python.org>2007-10-30 18:34:07 (GMT)
commit826d8973ac52a0a8155ef857c8a9bf18a90b11ac (patch)
tree228f7830ba30118bed52db846a39b2ef1f9c0fda /Include
parent1cd5bd2a2e600d0f29f9dcfbb9ea922cb1cd006f (diff)
downloadcpython-826d8973ac52a0a8155ef857c8a9bf18a90b11ac.zip
cpython-826d8973ac52a0a8155ef857c8a9bf18a90b11ac.tar.gz
cpython-826d8973ac52a0a8155ef857c8a9bf18a90b11ac.tar.bz2
Patch 1352 (continued in issue 1329) by Christian Heimes.
Before sys.stderr is set to the proper thing, set it to a really simple file-like object that can print tracebacks using direct file descriptor I/O. This is handy for debugging.
Diffstat (limited to 'Include')
-rw-r--r--Include/fileobject.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/fileobject.h b/Include/fileobject.h
index ae127da..40d871a 100644
--- a/Include/fileobject.h
+++ b/Include/fileobject.h
@@ -21,6 +21,13 @@ PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
*/
PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
+/* Internal API
+
+ The std printer acts as a preliminary sys.stderr until the new io
+ infrastructure is in place. */
+PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int);
+PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
+
#ifdef __cplusplus
}
#endif