Skip site navigation (1) Skip section navigation (2)

Python 3.1 support

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Python 3.1 support
Date: 2009-11-12 19:54:01
Message-ID: 1258055641.24453.9.camel@vanquo.pezone.net (view raw or flat)
Thread:
Lists: pgsql-hackers
Here's the patch to support Python >=3.1 with PL/Python.  The
compatibility code is mostly in line with the usual 2->3 C porting
practice and is documented inline.

I needed to create an arguably weird hack to manage the regression
tests.  Instead of creating a new expected file for pretty much every
test file and also for some input files (where Python syntax had
changed), a sed script creates a complete Python 3 compatible set of
input and output files.  Doesn't look pretty but works quite well.  If
anyone has a better idea, please let me know.

Attachment: python3.1.patch
Description: text/x-patch (25.8 KB)

Responses

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2009-11-12 19:56:57
Subject: Re: Patch committers
Previous:From: David FetterDate: 2009-11-12 19:52:32
Subject: Re: array_to_string bug?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group