anaconda-mode
anaconda-mode copied to clipboard
Skip to the cpython primitive definition of the python function/operator.
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