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
This doesn't cause any breaking problem because, in the code, if dtype->f->scanfunc is defined then dtype->f->fromstr is also defined. However, I think it's easier to maintain if the check is checking the actual function.
Thoughts?
The text was updated successfully, but these errors were encountered:
I found the following inconsistency in
PyArray_FromString
.In the following line we check
dtype->f->scanfunc == NULL
to determine if the C function to read from string is defined.numpy/numpy/core/src/multiarray/ctors.c
Line 4003 in ee309d9
If
dtype->f->scanfunc != NULL
, thenarray_from_text
is called withfromstr_next_element
to read the next element from string.numpy/numpy/core/src/multiarray/ctors.c
Lines 4017 to 4021 in ee309d9
However, the actual function that read from string is
dtype->f->fromstr
, notdtype->f->scanfunc
.numpy/numpy/core/src/multiarray/ctors.c
Lines 47 to 51 in ee309d9
This doesn't cause any breaking problem because, in the code, if
dtype->f->scanfunc
is defined thendtype->f->fromstr
is also defined. However, I think it's easier to maintain if the check is checking the actual function.Thoughts?
The text was updated successfully, but these errors were encountered: