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: Wed, 08 Mar 2023 20:41:32 +0100 Message-ID: <874jqv3uab.fsf@gmail.com> References: 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="20723"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Mart=C3=ADn_Fern=C3=A1ndez?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 08 20:42:35 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 1pZzgI-0005E2-VC for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Mar 2023 20:42:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZzfQ-0002sn-PA; Wed, 08 Mar 2023 14:41:40 -0500 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 1pZzfP-0002se-Kg for emacs-devel@gnu.org; Wed, 08 Mar 2023 14:41:39 -0500 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZzfO-000899-1V for emacs-devel@gnu.org; Wed, 08 Mar 2023 14:41:39 -0500 Original-Received: by mail-ed1-x536.google.com with SMTP id j11so50647560edq.4 for ; Wed, 08 Mar 2023 11:41:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678304496; 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=i4m06SIxgXhwnwEw7KplI2adECBvm2F2ROLt1o4FfK0=; b=OmdSsOOIuBzkZ+4V3IADxvbXcSGy2YprS/uvbvBuvLOEvj0Mbj0b5S29S2SaijLmJC VBNIQHWmwsScWh09fxWhMshtBmBNb+161941f7Ct9andnASbvvyF1pdyfuxubcjsqVYE sgRzvtak83H4mZk9CSR45iEtw4FDAvij36pSGO4p1T/cooeo0X5f4BGhVSDpcOf7bXtp O/hGYw3jR6nY2RYQdU+INycpI8QplRAMSrdZoLqnjpGnpKpUSyAFqOrQTlVkptzbLXnO WG0vaFT+I5IEHlN5RRkIGDli1oU14iwefZXO/0yO0fI0Jn6la4JF6iW7AWz2zPW4uVGk DXlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678304496; 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=i4m06SIxgXhwnwEw7KplI2adECBvm2F2ROLt1o4FfK0=; b=WJMpiaui+GBLj9uWEXR1ZTpewF95bQ8Sm0rPJLr1xmLrSq8SGtdDTGjStNDBN+RZJj vbpNxGRBSJniNFKlAaGlCwQBBi/sbj792gVLuaUdY4/FbgFEvrin+AabEOuaSva5QEpl GjEZ/WWGMWqBr90TTsMJ52rYma8Vtfq/5yc9hVcZk/V+1h9LWp4vT4zGnYeT8wotbFmY CPtrQgpSRMUuF8QPlxbca7Iua3lehDNBFL8zU1Yopfn+vxRiJ12yRKuEg3GU1bOicCq6 5XPA1Z+2XPu3dl5NVdaqffRtwSgO3VL7D28Y3KC+unE8ETJ25G8lLuM6JK3H4PgKA95z ePeQ== X-Gm-Message-State: AO0yUKVV9+7oU8XotnbVi5sv01lFuAq5EMyyxF3MCPlVzm/lGrEvvxMe 5AXZgsBudEKDarBIzEG40WYeBJWGRkTq6g== X-Google-Smtp-Source: AK7set+zKNfskPANOBpQc36jHELC6AbA8uJfI/QmTHcTSbT1GOgu2jYBVyX/m52wUmMaRrAaLVkGUQ== X-Received: by 2002:a05:6402:787:b0:4da:3362:23a6 with SMTP id d7-20020a056402078700b004da336223a6mr13779977edy.25.1678304495917; Wed, 08 Mar 2023 11:41:35 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::8b3a]) by smtp.gmail.com with ESMTPSA id m30-20020a50d7de000000b004c13fe8fabfsm8602357edj.84.2023.03.08.11.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 11:41:35 -0800 (PST) In-Reply-To: (=?utf-8?Q?=22Mart=C3=ADn_Fern=C3=A1ndez=22's?= message of "Wed, 8 Mar 2023 11:03:05 -0300") Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x536.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:304151 Archived-At: On Wed, 8 Mar 2023 at 11:03, Mart=C3=ADn Fern=C3=A1ndez wrote: > Hey, > > I'm wondering why there is no logic to find the latest python > executable installed (python vs python3) when setting > `python-interpreter`, as it is done with `python-shell-interpreter`. > > I think it should be added, but since it is a straightforward change I > assume there are reasons for it. Otherwise I'm happy to send a patch. > > Thanks. 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'.