Skip to content

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