summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-02-08 21:07:20 +0000
committerBenjamin Peterson <benjamin@python.org>2009-02-08 21:07:20 +0000
commitee1ae7ccb76b9ae81ae2c4e9c04ce71d7b605038 (patch)
treefad412f4e8eb7f6e84423980ec2830923e43badd /Misc
parentc7055a59a6c7f39e19c0936ff9f48a5c6924fc4f (diff)
downloadcpython-git-ee1ae7ccb76b9ae81ae2c4e9c04ce71d7b605038.tar.gz
fix len() when __len__() returns a non number type #5137
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a0a8d1fab7..5a3b4adad1 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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