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

np.left_shift and np.right_shift fail on np.uint64 scalar types (Trac #1930) #2523

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 3 comments
Labels
00 - Bug 50 - Duplicate component: numpy._core Priority: high High priority, also add milestones for urgent issues

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/1930 on 2011-08-10 by trac user tlatorre, assigned to unknown.

>>> np.uint64(5) << 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: ufunc 'left_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
>>> np.uint64(5) >> 3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: ufunc 'right_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
@numpy-gitbot
Copy link
Author

@pv wrote on 2012-05-02

Duplicate of #2524

@ghost
Copy link

ghost commented Dec 2, 2019

Still have this.

@eric-wieser
Copy link
Member

eric-wieser commented Dec 2, 2019

Locking as a duplicate of #2524

@numpy numpy locked and limited conversation to collaborators Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
00 - Bug 50 - Duplicate component: numpy._core Priority: high High priority, also add milestones for urgent issues
Projects
None yet
Development

No branches or pull requests

2 participants