diff Objects/object.c @ 1361:7cd533cf194a legacy-trunk

import.c: When something is wrong with the .pyc, properly open the .py file. object.c: Write allocation statistics to stderr.
author Sjoerd Mullender <sjoerd@acm.org>
date Mon, 25 Oct 1993 08:40:52 +0000
parents 043da19302ef
children aac8231a715c
line wrap: on
line diff
--- a/Objects/object.c	Fri Oct 22 14:26:06 1993 +0000
+++ b/Objects/object.c	Mon Oct 25 08:40:52 1993 +0000
@@ -45,14 +45,15 @@
 	typeobject *tp;
 
 	for (tp = type_list; tp; tp = tp->tp_next)
-		printf("%s alloc'd: %d, freed: %d, max in use: %d\n",
-		       tp->tp_name, tp->tp_alloc, tp->tp_free,
-		       tp->tp_maxalloc);
-	printf("fast tuple allocs: %d, empty: %d\n", fast_tuple_allocs,
-	       tuple_zero_allocs);
-	printf("fast int allocs: pos: %d, neg: %d\n", quick_int_allocs,
-	       quick_neg_int_allocs);
-	printf("null strings: %d, 1-strings: %d\n", null_strings, one_strings);
+		fprintf(stderr, "%s alloc'd: %d, freed: %d, max in use: %d\n",
+			tp->tp_name, tp->tp_alloc, tp->tp_free,
+			tp->tp_maxalloc);
+	fprintf(stderr, "fast tuple allocs: %d, empty: %d\n",
+		fast_tuple_allocs, tuple_zero_allocs);
+	fprintf(stderr, "fast int allocs: pos: %d, neg: %d\n",
+		quick_int_allocs, quick_neg_int_allocs);
+	fprintf(stderr, "null strings: %d, 1-strings: %d\n",
+		null_strings, one_strings);
 }
 
 void