You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My argument is that where makes sense unless out is default None, in which case it simply obscures the creation of a partially uninitialised array.
The casual numpy user accessing through the public API likely only wants garbage values if they have explicitly asked for them using empty_like. If they have decided not to provide out, it probably means they expect a partially transformed copy of the input array and have overlooked the note in the docstring.
Example:
User creates a function that takes log on values where log is defined .
Proposed new feature or change:
My argument is that
where
makes sense unlessout
is defaultNone
, in which case it simply obscures the creation of a partially uninitialised array.The casual numpy user accessing through the public API likely only wants garbage values if they have explicitly asked for them using
empty_like
. If they have decided not to provideout
, it probably means they expect a partially transformed copy of the input array and have overlooked the note in the docstring.Example:
User creates a function that takes log on values where log is defined .
User suddenly decides that they don't want to specify
out
every time, makingsafe_log
unsafe.The text was updated successfully, but these errors were encountered: