]> granicus.if.org Git - python/commit
Fix a small nit in the error message if bool() falls back on __len__ and it returns...
authorGeorg Brandl <georg@python.org>
Sun, 15 Mar 2009 21:43:38 +0000 (21:43 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 15 Mar 2009 21:43:38 +0000 (21:43 +0000)
commited4cefbedd1817247b94e5880f850bc1c3f6628d
tree315fb597d9ee701d0a828cde0490af4d4ba7ab7a
parent3259ef3dff534dd0c106905ffa6e14d8fe7181e1
Fix a small nit in the error message if bool() falls back on __len__ and it returns the wrong type: it would tell the user that __nonzero__ should return bool or int.
Objects/typeobject.c