8000 MAINT: Correct masked aliases by bashtage · Pull Request #13688 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Correct masked aliases #13688

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
Jun 2, 2019
Merged

Conversation

bashtage
Copy link
Contributor
@bashtage bashtage commented Jun 1, 2019

Expose alias that have correct docstrings

closes #10587
closes #7512

@bashtage bashtage force-pushed the random_sample-aliases branch from f352dc4 to d8d9fac Compare June 1, 2019 05:36
@@ -177,7 +177,6 @@
'ThreeFry', 'Xoshiro256', 'Xoshiro512', 'RandomState']

# Some aliases:
ranf = random = sample = random_sample
__all__.extend(['ranf', 'random', 'sample'])
Copy link
Member

Choose a reason for hiding this comment

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

Nit: this could get a cleanup and be moved to the huge __all__ list above, which should get a comment that these are all imported with from mtrand import *

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Expose alias that have correct docstrings

closes numpy#10587
@bashtage bashtage force-pushed the random_sample-aliases branch from d8d9fac to 68c81c1 Compare June 1, 2019 20:32
@mattip mattip merged commit b90e09c into numpy:master Jun 2, 2019
@bashtage bashtage deleted the random_sample-aliases branch May 12, 2020 21:38
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.

DOC: numpy.random.sample and numpy.random.random_sample DOC: np.random.random documentation refers only to np.random.random_sample
4 participants
0