]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Write warning about exception in __del__ to stderr, not stdout.
authorGuido van Rossum <guido@python.org>
Tue, 20 Aug 1996 19:54:29 +0000 (19:54 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 20 Aug 1996 19:54:29 +0000 (19:54 +0000)
Objects/classobject.c

index 6eb453fdab49c0aa10d227a2f4627340a9e84451..d7be15a449fa5d4ed8e07cc96701269aeb812d3d 100644 (file)
@@ -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);