git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [Question] Moving from Python2 to Python3

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 25, 2025, 23:19 UTC
Message-ID
<xmqqtt7glmut.fsf@gitster.g>
In-Reply-To
<66e39a95-09a3-44dc-ac71-a6c02b5949c9@gmail.com>
Nikolay Shustov <nikolay.shustov@gmail.com> writes:
Show 8 quoted lines
> git-p4 is designed to work both with Python 2 and Python 3.
>
> However, changing just PYTHONPATH may not to be good enough.
>
> In general, it is necessary to make having PYTHONPATH value and the
> version of Python executable which application is run by, to be
> coherent: Python executable has to be able to work correctly with the
> libraries PYTHONPATH points to.

Hmph, but isn't that the core competence of those who package Python to their target system? If we run something with /usr/bin/python3, without any strange customization, that binary ought to know where it should pull its associated standard library files from, and we as the language users do not have to worry about it, no?

Previous: Nikolay ShustovNext: Nikolay Shustov
Message 4 of 7 in “[Question] Moving from Python2 to Python3”
  1. rsbecker@nexbridge.comMar 25, 2025
  2. brian m. carlsonMar 25, 2025
  3. Nikolay ShustovMar 25, 2025
  4. Junio C HamanoMar 25, 2025
  5. Nikolay ShustovMar 25, 2025
  6. Todd ZullingerMar 26, 2025
  7. Nikolay ShustovMar 26, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.