fix *serious* (new) bug in testbool: by default objects should test

true, not false!!!
This commit is contained in:
Guido van Rossum 1992-08-19 16:41:45 +00:00
parent 448f4bf45a
commit f9a2d33f01
1 changed files with 1 additions and 1 deletions

View File

@ -1422,7 +1422,7 @@ testbool(v)
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;