diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-02-08 21:07:20 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-02-08 21:07:20 +0000 |
commit | ee1ae7ccb76b9ae81ae2c4e9c04ce71d7b605038 (patch) | |
tree | fad412f4e8eb7f6e84423980ec2830923e43badd /Misc | |
parent | c7055a59a6c7f39e19c0936ff9f48a5c6924fc4f (diff) | |
download | cpython-git-ee1ae7ccb76b9ae81ae2c4e9c04ce71d7b605038.tar.gz |
fix len() when __len__() returns a non number type #5137
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12,6 +12,9 @@ What's New in Python 3.1 alpha 0 Core and Builtins ----------------- +- Issue #5137: Make len() correctly raise a TypeError when a __len__ method + returns a non-number type. + - Issue #5182: Removed memoryview.__str__. - Issue #1717: Removed builtin cmp() function, dropped tp_compare |