diff Python/ceval.c @ 974:c9c0328368a9 legacy-trunk

fix *serious* (new) bug in testbool: by default objects should test true, not false!!!
author Guido van Rossum <guido@python.org>
date Wed, 19 Aug 1992 16:41:45 +0000
parents 03de67080c95
children a41e3ba5b47d
line wrap: on
line diff
--- a/Python/ceval.c	Wed Aug 19 16:41:15 1992 +0000
+++ b/Python/ceval.c	Wed Aug 19 16:41:45 1992 +0000
@@ -1422,7 +1422,7 @@
 	else if (v->ob_type->tp_as_sequence != NULL)
 		res = (*v->ob_type->tp_as_sequence->sq_length)(v);
 	else
-		res = 0;
+		res = 1;
 	if (res > 0)
 		res = 1;
 	return res;