8000 DOC: broadcast_to() supports int as shape parameter by timhoffm · Pull Request #19445 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

DOC: broadcast_to() supports int as shape parameter #19445

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 1 commit into from
Jul 12, 2021

Conversation

timhoffm
Copy link
Contributor
@timhoffm timhoffm commented Jul 9, 2021

See here for the implementation:

shape = tuple(shape) if np.iterable(shape) else (shape,)

Technically this is even more permissive by allowing any iterabale, but I wouldn't document that.

@mattip
Copy link
Member
mattip commented Jul 12, 2021

Thanks @timhoffm

@timhoffm timhoffm deleted the doc-broadcast_to branch July 12, 2021 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0