Skip to content

BUG: np.isscalar(memoryview) depends on python version #9898

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

Closed
eric-wieser opened this issue Oct 21, 2017 · 1 comment
Closed

BUG: np.isscalar(memoryview) depends on python version #9898

eric-wieser opened this issue Oct 21, 2017 · 1 comment
Labels

Comments

@eric-wieser
Copy link
Member

>>> np.isscalar(memoryview(b'test'))
False # python 2
True  # python 3
>>> np.ndim(memoryview(b'test')) == 0
False # both versions
@eric-wieser
Copy link
Member Author

Guess this issue is irrelevant now that the result is consistent across all the python versions that we still support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant