]> granicus.if.org Git - postgresql/commitdiff
Python 2.2 is no longer supported
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 10 May 2012 16:58:35 +0000 (19:58 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 10 May 2012 17:02:57 +0000 (20:02 +0300)
It was already on its last legs, and it turns out that it was
accidentally broken in commit 89e850e6fda9e4e441712012abe971fe938d595a
and no one cared.  So remove the rest the support for it and update
the documentation to indicate that Python 2.3 is now required.

doc/src/sgml/installation.sgml
src/pl/plpython/expected/README
src/pl/plpython/plpython.h

index fe043c60847125c8bc6dec243e46c94dd2a5f030..609e004a336f16f88abe996cc5bef10a41e4973a 100644 (file)
@@ -206,7 +206,7 @@ su - postgres
       installation with the header files and
       the <application>distutils</application> module.  The minimum
       required version is <productname>Python</productname>
-      2.2.  <productname>Python 3</productname> is supported if it's
+      2.3.  <productname>Python 3</productname> is supported if it's
       version 3.1 or later; but see
       <![%standalone-include[the <application>PL/Python</> documentation]]>
       <![%standalone-ignore[<xref linkend="plpython-python23">]]>
index 11424877b6f880b34d9779f5213f909e0a73ea67..5bf93668da5d4d1c5c3b15ac83409ede94452b76 100644 (file)
@@ -9,6 +9,3 @@ plpython_subtransaction_0.out   Python 2.4 and older (without with statement)
 plpython_subtransaction_5.out  Python 2.5 (without with statement)
 
 plpython_types_3.out                   Python 3.x
-
-Note: Building with Python 2.2 is supported, but there are no expected
-files for it (too much work to maintain).
index 54ffb4a3bd72fe86555b2745a8da103f9c9b931c..15ec85e8057db70f2322b8a57125faa3b9347759 100644 (file)
@@ -67,13 +67,6 @@ typedef int Py_ssize_t;
 #define PY_SSIZE_T_MIN INT_MIN
 #endif
 
-/*
- * PyBool_FromLong is supported from 2.3.
- */
-#if PY_VERSION_HEX < 0x02030000
-#define PyBool_FromLong(x) PyInt_FromLong(x)
-#endif
-
 /*
  * Python 2/3 strings/unicode/bytes handling.  Python 2 has strings
  * and unicode, Python 3 has strings, which are unicode on the C