Skip to content

Clarify the required semantics for broadcasting with __setitem__ #429

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

Merged
merged 2 commits into from
Nov 17, 2022

Conversation

asmeurer
Copy link
Member

Fixes #424.

I have used SHOULD here as suggested in the consortium meeting to not disallow NumPy-like "reverse broadcasting" semantics.

@leofang
Copy link
Contributor

leofang commented May 12, 2022

Can we add two simple examples to illustrate what's allowed and what's not?

@kgryte kgryte added the Maintenance Bug fix, typo fix, or general maintenance. label May 23, 2022
@kgryte kgryte added this to the v2022 milestone May 23, 2022
@kgryte
Copy link
Contributor

kgryte commented Nov 3, 2022

@asmeurer Would you be willing to update this PR with two examples, one illustrating what is allowed and another illustrating what is disallowed?

@asmeurer
Copy link
Member Author

asmeurer commented Nov 3, 2022

Added.

@rgommers rgommers changed the title Clarify the required semantics for broadcasting with setitem Clarify the required semantics for broadcasting with __setitem__ Nov 17, 2022
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the examples are clear. Thanks @asmeurer, all.

@rgommers rgommers merged commit cb2d7bd into data-apis:main Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Bug fix, typo fix, or general maintenance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Be more clear about broadcasting behavior in setitem
4 participants