[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: python-mode: Why python-interpreter defaults to "python" instead of
From: |
Augusto Stoffel |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Thu, 16 Mar 2023 at 11:29, Martín Fernández 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'.