diff Objects/object.c @ 43718:e510b716bd80

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.
author Guido van Rossum <guido@python.org>
date Tue, 30 Oct 2007 18:34:07 +0000
parents 1bac386c17cc
children 3e5edf19d5f0
line wrap: on
line diff
--- a/Objects/object.c	Tue Oct 30 18:13:17 2007 +0000
+++ b/Objects/object.c	Tue Oct 30 18:34:07 2007 +0000
@@ -1595,6 +1595,9 @@
 
 	if (PyType_Ready(&PyCode_Type) < 0)
 		Py_FatalError("Can't initialize 'code'");
+
+	if (PyType_Ready(&PyStdPrinter_Type) < 0)
+		Py_FatalError("Can't initialize StdPrinter");
 }