-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
remove is_string_object #25937
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
remove is_string_object #25937
Conversation
@@ -37,7 +37,6 @@ from numpy cimport int64_t | |||
|
|||
cdef extern from "numpy/arrayobject.h": | |||
PyTypeObject PyFloatingArrType_Type | |||
int _import_array() except -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this just dead code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. I think i introduced it a while back as part of a failed attempt to get rid of the NPY_DEPRECATED_API warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Probably already saw but a few small typos failing CI |
Codecov Report
@@ Coverage Diff @@
## master #25937 +/- ##
==========================================
- Coverage 91.81% 91.81% -0.01%
==========================================
Files 175 175
Lines 52580 52580
==========================================
- Hits 48278 48274 -4
- Misses 4302 4306 +4
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #25937 +/- ##
==========================================
- Coverage 91.81% 91.81% -0.01%
==========================================
Files 175 175
Lines 52580 52580
==========================================
- Hits 48278 48274 -4
- Misses 4302 4306 +4
Continue to review full report at Codecov.
|
thanks |
now that we're py3-only,
is_string_object(obj)
reduces to justisinstance(obj, str)
which cython already optimizes.