From: Guido van Rossum Date: Tue, 20 Aug 1996 19:54:29 +0000 (+0000) Subject: Write warning about exception in __del__ to stderr, not stdout. X-Git-Tag: v1.4b3~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89227eb0f50af9c18eaf7d1edc8036d0dd5ccb62;p=thirdparty%2FPython%2Fcpython.git Write warning about exception in __del__ to stderr, not stdout. --- diff --git a/Objects/classobject.c b/Objects/classobject.c index 6eb453fdab49..d7be15a449fa 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -399,7 +399,7 @@ instance_dealloc(inst) DECREF(del); if (res == NULL) { writestring("exception in __del__ method ignored\n", - sysget("stdout")); + sysget("stderr")); } else DECREF(res);