Document PyArray_GETITEM / PySequence_GetItem discrepancy
See original GitHub issueEven for 1-D Arrays, PyArray_GETITEM
returns something different from PySequence_GetItem
: PyArray_GETITEM
returns standard Python types while PySequence_GetItem
returns the corresponding Numpy scalar types. This should be documented to avoid confusion.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Infinite __getitem__ calls during NumPy array assignment
I have a list of class instances, which have a __getitem__ and a __len__ method implemented. However, when I try to create a...
Read more >Py2kBuffer (jython-slim 2.7.2 API) - javadoc.io
Gets the indexed element of the buffer as a one byte string. This is an extension point called by PySequence in its implementation...
Read more >Data view /slice of zarr array without loading entire array #980
From the docs, it looks like there is two options: Use getitem via ... zarr-python should work hard not to load the entire...
Read more >Python/C API Reference Manual
This manual documents the API used by C and C++ programmers who want to ... PyObject GetItem() and PySequence GetItem(), always return a...
Read more >User-defined slice-like objects, and slicing mappings - Ideas
I'm proposing to create a new __slice__ method in the datamodel, which would return a sequence or iterable. When indexing a list or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am absolutely new to this. So I should just modify the PyArray_GETITEM in the text file? @mattip
@eric-wieser Looks good to me, thank you.