anaconda-mode icon indicating copy to clipboard operation
anaconda-mode copied to clipboard

Skip to the cpython primitive definition of the python function/operator.

Open hongyi-zhao opened this issue 4 years ago • 0 comments

See the following testing in ipython:

$ ipython
In [1]: import numpy as np

In [2]: a=np.array([1] ,dtype=bool)

In [3]: a
Out[3]: array([ True])

In [4]: ~a
Out[4]: array([False])

In [5]: np.invert(a)
Out[5]: array([False])

In [6]:

So, I want to confirm the equivalence of the np.invert and ~ operators by inspecting their corresponding cpython primitive definition. Is there a way for me to skip to them from the python script with the help of anaconda-mode?

Regards, HZ

hongyi-zhao avatar Oct 13 '21 02:10 hongyi-zhao