From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Skip to the cpython primitive definition of the function/operation. Date: Tue, 12 Oct 2021 19:53:29 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17056"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 12 13:54:56 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maGMy-0004CK-Ao for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 13:54:56 +0200 Original-Received: from localhost ([::1]:33858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maGMw-0006i5-6m for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 07:54:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maGLm-0006fz-TM for help-gnu-emacs@gnu.org; Tue, 12 Oct 2021 07:53:43 -0400 Original-Received: from mail-ua1-x934.google.com ([2607:f8b0:4864:20::934]:34706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maGLl-0005ow-EG for help-gnu-emacs@gnu.org; Tue, 12 Oct 2021 07:53:42 -0400 Original-Received: by mail-ua1-x934.google.com with SMTP id h4so18063756uaw.1 for ; Tue, 12 Oct 2021 04:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=RtEK1L5RChPZQsmMdIBFjFdE6wDzbNUVPAHXEeSDOz0=; b=jKNjZucWHfp4VhV7tifKUWgybY1ik8Y4uoj1FiTPjdlt3bjVGNp+xeITeKV6qRURdU bWBCjiruFALjn1Suhd8gbnroly1VR8hweNGy6TH5OPfvO9Wi++Lf801BMN/9y2teK2W7 /Jq4i9GjUAltf2Dsf1aMpN/OKegeR80VxH+wrK/j0bQvv+TL3nPUVKOn2/AdABdd8mAE EBi97HUi4T2jfOzCyWAVIUNmWsUmuei+Y91TqkyX8HgdFPRnQSwTu4UiVgNk44jndRN0 75NWU+dbfInjNTgraG+X0B+XEn6aqKA5e8g/hQf4F0o1+/ZPwA9dAnUlhHW4TK8LMlKK hCBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RtEK1L5RChPZQsmMdIBFjFdE6wDzbNUVPAHXEeSDOz0=; b=xURxvS+FaX43f/sj4Af6s9mPUBdpnxVXUbWciruZRcieWb+tbJ3EyQUaUJ++XjHu54 7qWPzzxFwRXLR6tCzy+SxENirN3W3Jo3oCRSWxMatTPKQHkr/jMYUoGTSMnghwLLCLE+ RMVCnQF8wY/SQXNkCKInX8Mry6DXARKcfRPxg7lxJugpTJ5hxE+ZVcCYy+donhKTFMJS pMczb9SZeaWQlLH6N8IG0XthOMGHOVrQ5YsQJjcERepNo5x/iCaGvJE9fPpM7q+m4kFA zApRyD7/dtMvAWGPnzCbKL123k7uVuFFXA/HfcJAzwBNKQon1vAJ546Jav8d2o8SU9h/ npqQ== X-Gm-Message-State: AOAM532/I96vBEkJUhI3LUGlsrOKf+OOnoDMMwbM8tUJunScoZwIJD2j 3psZNXu4m26JrXnF+jL7HwIWd79XpYg0CKIDVbHi2cVtq3ZODIP5 X-Google-Smtp-Source: ABdhPJzu+LwJlpf+fGTLO4FO/cr9253aVyw1EhiynCPTaOo0RedywHmj1P/YqKPZQIBGbxZaDy4/atffWMnOzGN5RhQ= X-Received: by 2002:ab0:53c8:: with SMTP id l8mr21328200uaa.26.1634039620245; Tue, 12 Oct 2021 04:53:40 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::934; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x934.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133754 Archived-At: 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 the corresponding cpython primitive definition. Is there a way for me to skip to them from the python script opened in Emacs? Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province