summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAllan Haldane <allan.haldane@gmail.com>2016-02-16 19:11:30 -0500
committerAllan Haldane <allan.haldane@gmail.com>2016-02-18 23:26:53 -0500
commitbf6017a42dae58f0354e7da70c24f3ded40d0410 (patch)
tree075de7037aa51b57cd9fa5773b6fd92d3657c21b /doc
parent3fb847a93a6d16a8dd466f2545bc8b7d6ea1eb58 (diff)
downloadnumpy-bf6017a42dae58f0354e7da70c24f3ded40d0410.tar.gz
BUG: Segfault for classes with deceptive __len__
Fixes #7264
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.11.0-notes.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/release/1.11.0-notes.rst b/doc/release/1.11.0-notes.rst
index aa11cdf07..0c60fd175 100644
--- a/doc/release/1.11.0-notes.rst
+++ b/doc/release/1.11.0-notes.rst
@@ -153,6 +153,15 @@ it's unlikely that any third-party code is using them either, but we
mention it here for completeness.
+object dtype detection for old-style classes
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+In python 2, objects which are instances of old-style user-defined classes no
+longer automatically count as 'object' type in the dtype-detection handler.
+Instead, as in python 3, they may potentially count as sequences, but only if
+they define both a `__len__` and a `__getitem__` method. This fixes a segfault
+and inconsistency between python 2 and 3.
+
New Features
============