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

Register numpy arrays as a collections.abc.Sequence #631

Closed
evhub opened this issue Dec 5, 2021 · 0 comments
Closed

Register numpy arrays as a collections.abc.Sequence #631

evhub opened this issue Dec 5, 2021 · 0 comments

Comments

@evhub
Copy link
Owner

evhub commented Dec 5, 2021

Currently, numpy arrays are not registered as a collections.abc.Sequence (see: numpy/numpy#2776). As a result, code like

[1, two] = np.array([1, 2])

fails. To solve this, Coconut should automatically register numpy arrays as Sequences.

@evhub evhub added this to the v2.0.0 milestone Dec 5, 2021
@evhub evhub changed the title Register numpy arrays as abc.Sequences Register numpy arrays as a collections.abc.Sequence Dec 5, 2021
evhub added a commit that referenced this issue Dec 5, 2021
@evhub evhub added the resolved label Dec 5, 2021
@evhub evhub closed this as completed Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant