-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
MAINT: Move ndarray.__str__ and ndarray.__repr__ to their own file #9202
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
Conversation
* Set the array print function to be a Python function. | ||
*/ | ||
NPY_NO_EXPORT void | ||
PyArray_SetStringFunction(PyObject *op, int repr) |
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.
Seems that this isn't being picked up by the tool to build the numpy API
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.
You need to add things in numpy/core/setup.py
-- multiarray_deps
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.
Ah, just too late to help!
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.
I have done already
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.
Nope, help still needed - it still doesn't build for that reason
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.
(That fixup was some other errors that I spotted that would appear once I fix this API one)
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.
Solved - API_FILES
in getapi.py
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.
the _deps
listings should be unnecessary now, nothing actually reads them and for gcc compatible compilers it determines dependencies automatically.
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.
Wish these things were documented a bit more clearly... Raised issue gh-9203 to remind us.
a4ae553
to
1bc3688
Compare
1bc3688
to
7de5027
Compare
7de5027
to
04da564
Compare
All set, builds locally now |
04da564
to
b961c3c
Compare
This looks all OK now. Hopefully the tests will bear this out... |
Tests are good! |
OK, even though this hasn't been out long enough for it to be necessarily noticed by all, I think this is a clear enough improvement that I'll just merge it. Then, #9201 can proceed as well. |
Goal here is to let the definition for
__unicode__
be in the same place too (#9201).This doesn't build, claiming there's a mismatch between the API dict and index.What have I done wrong?