Re: exceptions not present in plpy with Python 3
Jan Urbański <wulczer@wulczer.org>
From: Jan Urbański <wulczer@wulczer.org>
To: Postgres - Hackers <pgsql-hackers@postgresql.org>
Date: 2010-12-18T18:33:00Z
Lists: pgsql-hackers
Attachments
- plpython3-exceptions-v2.diff (text/x-patch) patch v2
On 18/12/10 18:56, Jan Urbański wrote: > I'm not a Python 3 expert, but I nicked some code from the Internet and > came up with this patch (passes regression tests on both Python 2 and 3). I tried to be too cute with the regression test, it fails with Python 2.3.7 (the latest 2.3 release). Attached is a fixed test that should work in Pythons 2.3+ I don't want to open that can of worms just yet, but do we have any formal policy on the oldest Python version we support? I tested on 2.3 just because looking at http://python.org/download/releases/ I saw that 2.2 was last released in 2003, so I thought 2.3 was as far as I'd go... Cheers, Jan