From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: python-mode: Why python-interpreter defaults to "python" instead of looking for python/python3 Date: Thu, 16 Mar 2023 19:13:06 +0100 Message-ID: <87a60cbm4t.fsf@gmail.com> References: <874jqv3uab.fsf@gmail.com> <87ilf1atyx.fsf@gmail.com> <87o7otf19h.fsf@posteo.net> 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="10101"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Philip Kaludercic , emacs-devel@gnu.org To: =?utf-8?Q?Mart=C3=ADn_Fern=C3=A1ndez?= , Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 16 19:14:13 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pcs7A-0002UB-Hs for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Mar 2023 19:14:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcs6F-0001Nz-1T; Thu, 16 Mar 2023 14:13:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcs6C-0001ND-OH for emacs-devel@gnu.org; Thu, 16 Mar 2023 14:13:12 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pcs6B-0006Km-9n; Thu, 16 Mar 2023 14:13:12 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id cy23so10978819edb.12; Thu, 16 Mar 2023 11:13:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678990388; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rzqmClrqQ8YPF6foAD3CryvUNZNqy3ERVb34rw9iP14=; b=nNGBMMYS7gLGojlPdaJ2p0FrSCRsNv6QxQrkTak549fKs50w77wfWqeA0S7FLeVvKH YZ2RwIYZBcCRmurOWy18O7+dKZW4ql527OmxYqyXnKIeowv3a+YLU5w+f6r+sAxV2qvo qi++EVXgGOG4uf/RZjlY5b1xZmZMt105rh6dQYaoV9N8uz0HO0p/o8sucXPZKdSvHg9c /fSEMox0e45EhnVMnf4Qk8x812AYNtG6oZkecgC7EnOixKhUuAGE71OjEijf0c+Q57el A/KgCdshbHrxGLBfRjcdI16G8+m/S3jIEvaa9mL+TT6gim7eVB5hyQOvCIj8v5K+Z6oQ yjvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678990388; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=rzqmClrqQ8YPF6foAD3CryvUNZNqy3ERVb34rw9iP14=; b=SxR1cspLlyQsNxVxegwNAcnGC+GLYUs5C1qh9C9VNI6w/XU7/wJrgDRD34sm2DEAus LwmL65YPOgUH9AL+fhE4ANDw3hRShr/THt14D4akcdYbykBc4NGh43rfOL1agxHReKJB Gi3N2wnrQjiustynFAWnkQ/Ffit7OglNBKxD51gEFSXZzqTTnB16gxhtdiN5Mc6c1wBK 9CatQqK9SmVPf7nZ6CbjtAoY62RXA5V0rnax9ytcffohqEwFc2XRo9VmaylFTae+nwH1 Op1h0UBdnMXizjKFHTvwariG6EmQxkS7O3VMj/Br8kYJmwat2DzSN3aefL7/eZmVXiAM CSyg== X-Gm-Message-State: AO0yUKUtEke9YFmxDUq4NF6ASSyPjM0PVOLXd42Y+JnZzdMMB0fhg13o cA5QMFHFw+gU57nP7xUOGxfvu06J0C0= X-Google-Smtp-Source: AK7set8nJZEzTXvNOkv13eZBMwYTSS/OYo7KpLsc3dsk29uVBqIxGVqfu2NpKdhlzsi3Je49n0zb0A== X-Received: by 2002:a17:906:694e:b0:931:1a26:f814 with SMTP id c14-20020a170906694e00b009311a26f814mr1727071ejs.55.1678990388671; Thu, 16 Mar 2023 11:13:08 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8ca4]) by smtp.gmail.com with ESMTPSA id g24-20020a170906349800b00930170bc292sm1316360ejb.22.2023.03.16.11.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 11:13:08 -0700 (PDT) In-Reply-To: (=?utf-8?Q?=22Mart=C3=ADn_Fern=C3=A1ndez=22's?= message of "Thu, 16 Mar 2023 11:29:28 -0300") Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x531.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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304528 Archived-At: On Thu, 16 Mar 2023 at 11:29, Mart=C3=ADn Fern=C3=A1ndez wrote: > What do you think? Do you know what the history is for the logic on > the interpreter variable and why it wasn't implemented on the cmdline > variable? I've included Glen, who implemented the logic in bug#45655. I now see that in that ticket Stefan made exactly the same points I made here. Namely: >>>> IMO the logic to choose `python-shell-interpreter' is misguided. The >>>> default value should be just "python", since if you are doing anything >>>> with Python and "python" doesn't point to the right version, then you >>>> are in trouble anyway. OTOH, if you really need to work with Python 2 >>>> and symlink "python" accordingly then the current default proactively >>>> puts you in trouble. >>>> >>>> Personally I'd be happy to see a patch fixing >>>> `python-shell-interpreter'.