Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: np.reshape missing optional copy argument #27373

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
Illviljan opened this issue Sep 10, 2024 · 4 comments
Closed

BUG: np.reshape missing optional copy argument #27373

Illviljan opened this issue Sep 10, 2024 · 4 comments
Labels

Comments

@Illviljan
Copy link
Contributor

Describe the issue:

According to the array api reshape is supposed to have a copy argument.

Reproduce the code example:

import numpy as np
import array_api_strict as xps

xps.reshape(xps.zeros((1,2,3)), (3,2,1), copy=True)
np.reshape(np.zeros((1,2,3)), (3,2,1), copy=True)  # TypeError: reshape() got an unexpected keyword argument 'copy'

Error message:

No response

Python and NumPy Versions:

2.0.2
3.12.5 | packaged by conda-forge | (main, Aug 8 2024, 18:24:51) [MSC v.1940 64 bit (AMD64)]

Runtime Environment:

No response

Context for the issue:

No response

@mattip
Copy link
Member

mattip commented Sep 10, 2024

Fixed in #26292 which is part of the latest release (2.1). Please update.

@mattip mattip closed this as completed Sep 10, 2024
@FelixBenning
Copy link

Screenshot 2024-09-21 at 22 38 41

there seems to be an issue with linters still

@FelixBenning
Copy link

@mattip perhaps I should have added a mention of you since this issue is closed and might not be on the radar anymore.

@mattip
Copy link
Member

mattip commented Sep 22, 2024

@FelixBenning please open a new issue, and don't forget to help us reproduce: what version of NumPy, operating system, linter ...

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

3 participants