[Numpy-discussion] fix random.choice for 1.7?
Alan G Isaac
Mon Nov 12 10:31:03 CST 2012
In a comment on the issue https://github.com/numpy/numpy/issues/2724 Sebastian notes:
"it could also be reasonable to have size=None as default and have it return a scalar/the given axes removed in that case. That would be a real change
in functionality unfortunately, but it would make sense for similarity to import random; random.choice mostly."
If this is under serious consider, then perhaps
random.choice should not be in 1.7 unless a decision can
be quickly made about the default for `size`.
(Allowing an axis argument can however be postponed.)
I am inclined to think that Sebastian's suggestion
More information about the NumPy-Discussion