Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hongyi-zhao opened this issue Oct 13, 2021 · 0 comments

Comments

@hongyi-zhao
Copy link

hongyi-zhao commented Oct 13, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant