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

Re: [PATCH] Use Python's "print" as a function, not as a keyword

From
PWPete Wyckoff <pw@padd.com>
Date
Dec 27, 2011, 16:41 UTC
Message-ID
<20111227164131.GB29842@padd.com>
In-Reply-To
<CACBZZX7PVyCFfHTJN_QZfyt5wAcr4UAiJSmo54PSi=8pgv3sYA@mail.gmail.com>
avarab@gmail.com wrote on Wed, 21 Dec 2011 03:48 +0100:
Show 14 quoted lines
> On Wed, Dec 21, 2011 at 03:19, Sebastian Morr <sebastian@morr.cc> wrote:
> 
> > But, as nobody seems to have cared before: Is Git designed to be
> > compatible only with versions prior 3.0?
> 
> I'm running Debian unstable and it has Python 2.7. Most people are
> still using Python 2.x as their default system Python since 3.x breaks
> backwards compatibility for common constructs like print.
>
> Does this only break Python 2.6, or all 2.x versions of Python?
> 
> What's our currently supported Python version for the Python code in
> Git? It's 5.8.0 for Perl, do we have any particular aim for a
> supported Python version?

I test contrib/fast-import/git-p4 on python 2.5 and 2.7. I'm hesitant to convert print() now, without committing to testing on post-3.0 too. The work to support 3.x doesn't buy us much.

		-- Pete
Previous: Sverre RabbelierNext: Frans Klaver
Message 4 of 5 in “Use Python's "print" as a function, not as a keyword”
  1. Use Python's "print" as a function, not as a keywordSebastian Morr, Dec 21, 2011
  2. Ævar Arnfjörð BjarmasonDec 21, 2011
  3. Sverre RabbelierDec 21, 2011
  4. Pete WyckoffDec 27, 2011
  5. Frans KlaverDec 21, 2011

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.