`frompyfunc` requires `dtype=object` when used with `accumulate` #4155
Comments
Probably does some casting under the hood (speculating as I have not looked). Maybe that is an option for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
raises an error:
accumulate
only works if thedtype
is set explicitly toobject
(either in the input, theout
array, or as akwarg
).This behavior may be consistent with the note in its
doc
thatThe returned ufunc always returns PyObject arrays.
. Also whenvectorize
uses aufunc
generated by this function, it converts the args to object type, and then converts the output to a specified (or deduced)otype
.However, is this error message required? A straight call of the
ufunc
returns an object array without any warning or error message:Or is this just documentation issue? Does its
__doc__
need an added note?The text was updated successfully, but these errors were encountered: