From 89227eb0f50af9c18eaf7d1edc8036d0dd5ccb62 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 20 Aug 1996 19:54:29 +0000 Subject: [PATCH] Write warning about exception in __del__ to stderr, not stdout. --- Objects/classobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/classobject.c b/Objects/classobject.c index 6eb453fdab4..d7be15a449f 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);