8000 The returned keyword in average looks useless. (Trac #701) · Issue #1299 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

The returned keyword in average looks useless. (Trac #701) #1299

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

Closed
numpy-gitbot opened this issue Oct 19, 2012 · 3 comments
Closed

The returned keyword in average looks useless. (Trac #701) #1299

numpy-gitbot opened this issue Oct 19, 2012 · 3 comments

Comments

@numpy-gitbot
Copy link

Original ticket http://projects.scipy.org/numpy/ticket/701 on 2008-03-16 by @charris, assigned to unknown.

Remove the returned keyword from average. This would clean up the code a bit and get rid of one more function with multiple return types. I don't see any use for the sum of the weights except for debugging average itself.

@numpy-gitbot
Copy link
Author

Attachment added by @alanmcintyre on 2008-05-06: numpy-ticket-701.diff

@numpy-gitbot
Copy link
Author

@alanmcintyre wrote on 2008-05-06

In general I'm not a fan of functions with multiple return types, so I attached a patch. It doesn't cause any NumPy, SciPy, or matplotlib test failures (on my Linux machine, at least).

I couldn't find any existing references to this parameter (or the average function, for that matter) in the docs. I'll include doc changes in the patch if someone can point me in the right direction.

@numpy-gitbot
Copy link
Author

@charris wrote on 2008-06-08

In the current implementation there is no overhead in the default computation, so leave it alone.

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
0