Skip to content

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

@hongyi-zhao

Description

@hongyi-zhao

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions