diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-02-19 08:01:20 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-02-19 08:01:20 -0700 |
commit | 2112e7d47ab401453230f6dc1b6923a468ad947d (patch) | |
tree | d802bb45442c33c3ded7dd387558dc7abc1e433e /doc | |
parent | dad36a3d86cb092b9bcfd5a9c03180597af82c07 (diff) | |
parent | bf6017a42dae58f0354e7da70c24f3ded40d0410 (diff) | |
download | numpy-2112e7d47ab401453230f6dc1b6923a468ad947d.tar.gz |
Merge pull request #7266 from ahaldane/segfault_invalidlenclass
BUG: Segfault for classes with deceptive __len__
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.11.0-notes.rst | 9 |
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 8c3028b69..26406a874 100644 --- a/doc/release/1.11.0-notes.rst +++ b/doc/release/1.11.0-notes.rst @@ -149,6 +149,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 ============ |