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: Re: Skip to the cpython primitive definition of the function/operation. Date: Wed, 13 Oct 2021 10:48:55 +0800 Message-ID: References: <87pmsawfp3.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13583"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 13 05:17:23 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 1maUlf-0003Ln-0W for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 Oct 2021 05:17:23 +0200 Original-Received: from localhost ([::1]:44730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maUld-0006Xu-Bo for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 23:17:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maUKM-0002c6-7v for help-gnu-emacs@gnu.org; Tue, 12 Oct 2021 22:49:10 -0400 Original-Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]:43749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maUKK-0000ai-Cy for help-gnu-emacs@gnu.org; Tue, 12 Oct 2021 22:49:09 -0400 Original-Received: by mail-ua1-x929.google.com with SMTP id i22so1665205ual.10 for ; Tue, 12 Oct 2021 19:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=D7R/7QusPAKCMkxPjS+2uppWVsw3Vs4sUzSuhbgHbqI=; b=Rw0AXEVcGYo5nEzM16hC29ADNiCDGUv1Whpp5jcmyQZitP0DSyQGGOvQgI2e0bECnc x9KdVmBZM/TOs3kl9XmzErTC5HlkzPqQSaSHOmy3+zkJIPctu203u44iA5CexDYxyvwo s0zhNQtUyd1WLFQqYMaINZjBj22qLYuhic6sVZXKSTgOPrcX/B4D/kixH9dT2K9g119s AWQ35htjhQMYOuwguh0YjC5jnizoF5w0VmdCETgvt2CaNof9/PoqoSSM1Kjkin/cbeP3 p/M3G7xsrchV4q9X8dUd+T1ec8QS/tSbFsBDc5KTOwGRE7WUf+tXQLVqPhyotfJn+z5d YP6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=D7R/7QusPAKCMkxPjS+2uppWVsw3Vs4sUzSuhbgHbqI=; b=r6938WlWzTvksV0e2BdGe6NpzPppIaInJWMKCiOTMOibIgEDWFeQlD7RBCXMVTZRrY /k0dAWFOmN5nQsyNLXyUm3yu+dILpd9RtzVIDiTNf0kAfPlHFZn0+qyiOvXmF/63Whso wFvH/znzlx8KN7/e+IEwNcVF2iC5QpbuG2OjopD/omoW5dPNB542B68jfJPslvyLJp3H 8opuDsnSvnatdH+1DtMbMKmyYtoWpu2WD5TOEXGKlx6AyrRujs/z6IpvYALDfm61rnoc cnz5PfZJfmGjI4xm2syS1C8VFF3R+2m5ix++P8l5L3KTXbao1jNQiR4gOIhDjubuCLiG rK9g== X-Gm-Message-State: AOAM530WRZf1IFozD+A7qj9ZzehRm4ulIfGJ/bhxDh1EUcFriqr/L7pb FGpM+/Lxo4uOh9NGLin17VHRG+MkPzdWN0jEiOmSTBYmswzW1xVJ X-Google-Smtp-Source: ABdhPJxjLruAMS15Fi2zo0t586vvNipXAf3Sfp6lEq3Cgez4st8GwPT8BCmij4qjqsopzG1dhV1CS6edb4/BZy2OUxk= X-Received: by 2002:ab0:53c8:: with SMTP id l8mr27265965uaa.26.1634093346357; Tue, 12 Oct 2021 19:49:06 -0700 (PDT) In-Reply-To: <87pmsawfp3.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::929; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x929.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:133773 Archived-At: On Tue, Oct 12, 2021 at 9:16 PM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > > 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? > > anaconda-mode ... maybe I've filed the relevant issues: https://github.com/pythonic-emacs/anaconda-mode/issues/417 https://github.com/emacs-lsp/lsp-mode/issues/3147 > elpy ... I've tried this before, but it doesn=E2=80=99t seem to have this feature. BTW, the more powerful IDE-like Emacs environment can be achieved by lsp-mode and dap-mode, which is just the combination I'm using currently. > So much Python! > > M-x list-packages RET > > https://dataswamp.org/~incal/emacs-init/elpa.el I use straight, which already includes all these repositories and many more, as noted below: https://github.com/raxod502/straight.el/blob/af5437f2afd00936c883124d6d3098= 721c2d306c/straight.el#L15 ;; straight.el is a next-generation package manager for Emacs. It ;; clones packages into your ~/.emacs.d and handles byte-compilation, ;; autoload generation, and load path management. Dependency ;; management, powerful tools for managing your packages in bulk, and ;; out-of-the-box compatibility with MELPA, GNU ELPA, and Emacsmirror ;; are also included. HZ