Commit f9a2d33f authored by Guido van Rossum's avatar Guido van Rossum

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

true, not false!!!
parent 448f4bf4
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment