diff options
author | Guido van Rossum <guido@python.org> | 2007-10-30 18:34:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-30 18:34:07 (GMT) |
commit | 826d8973ac52a0a8155ef857c8a9bf18a90b11ac (patch) | |
tree | 228f7830ba30118bed52db846a39b2ef1f9c0fda /Objects/object.c | |
parent | 1cd5bd2a2e600d0f29f9dcfbb9ea922cb1cd006f (diff) | |
download | cpython-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 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c index f6d125f..77ddb1d 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -1595,6 +1595,9 @@ _Py_ReadyTypes(void) if (PyType_Ready(&PyCode_Type) < 0) Py_FatalError("Can't initialize 'code'"); + + if (PyType_Ready(&PyStdPrinter_Type) < 0) + Py_FatalError("Can't initialize StdPrinter"); } |