commit | f9a2d33f014a8de414da4aa9a464d7a5318f4876 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Aug 19 16:41:45 1992 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Aug 19 16:41:45 1992 +0000 |
tree | 560eb67ec5281929c347af504bb22a9ab9e6df88 | |
parent | 448f4bf45a3005023770133666a504eab5e4648f [diff] |
fix *serious* (new) bug in testbool: by default objects should test true, not false!!!
diff --git a/Python/ceval.c b/Python/ceval.c index 5b72d8e..72f5eb1 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -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;