Nowadays, free AIs are good for such questions:
https://www.youtube.com/watch?v=bA-tbHwvA6A
hth
On Thu, Oct 31, 2024 at 9:31 AM Joao Pereira via NumPy-Discussion <
numpy-discussion@python.org> wrote:
> I don´t know how to use the numpy on spyder. I have tried to use this
> line: "import numpy as
The Python C-API almost exclusively uses `-1` for errors and I consider
it a wart that some NumPy API uses `NPY_FAIL`/`NPY_SUCCEED`, i would
not do this for new API.
The one exception are all "argument parsing functions". For those
Python again dictates the use of 0 (NPY_FAIL) and 1 (NPY_SUCCEED)
I don´t know how to use the numpy on spyder. I have tried to use this line:
"import numpy as np" but i dont know if it's the only necessary thing to do.
If you could explain it to me I'll appreciate it.
___
NumPy-Discussion mailing list -- numpy-discussi
While using the C API to work with Numpy arrays, I came across some
inconsistencies regarding the return of a success state from various Numpy
functions. For example, the array iterator functions return either NPY_SUCCEED
(defined as 1) or NPY_FAIL (defined as 0) to indicate whether the function