Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: io/matlab: work around issue in to_writeable on PyPy #8484

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

pv
Copy link
Member

@pv pv commented Feb 25, 2018

In to_writeable, mark numpy scalars explicitly as non-mappings.

This is how it works on CPython (numpy scalar instances don't have a
__dict__), but on PyPy-5.10, objects defined by C extensions have a
__dict__, which confuses the code here.

After this (and the other PyPy PRs), the test suite has 2 remaining minor
failures (TestRFFT*.test_non_ndarray_with_dtype in fftpack test code) on PyPy3, which are due to
https://bitbucket.org/pypy/pypy/issues/2760

In to_writeable, mark numpy scalars explicitly as non-mappings.

This is how it works on CPython (numpy scalar instances don't have a
__dict__), but on PyPy-5.10, objects defined by C extensions have a
__dict__, which confuses the code here.
@person142
Copy link
Member

Maybe worth linking to

https://bitbucket.org/pypy/pypy/issues/2763/cpyext-defined-class-instances-always-have

to see what the PyPy folks have to say.

@person142 person142 merged commit 9ac6a01 into scipy:master Feb 27, 2018
@person142 person142 added this to the 1.1.0 milestone Feb 27, 2018
@person142 person142 added defect A clear bug or issue that prevents SciPy from being installed or used as expected scipy.io maintenance Items related to regular maintenance tasks and removed defect A clear bug or issue that prevents SciPy from being installed or used as expected labels Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.io
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants