pythonic-emacs / anaconda-mode

Code navigation, documentation lookup and completion for Python.
GNU General Public License v3.0
706 stars 87 forks source link

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

Open hongyi-zhao opened 2 years ago

hongyi-zhao commented 2 years ago

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