11/03/2016 19:16, Tom Lane wrote:
> Léonard Benedetti <benedetti@mlpo.fr> writes:
>> Despite all that, I think this transition to Python 3 is wise, it is
>> available since 2008. Python 2 is legacy and its last version (2.7) is a
>> “end-of-life release”.
> Doesn't matter. We support both Python 2 and 3, and this script must
> do so as well, else it's not getting committed. Any desupport for
> Python 2 in PG is very far away; no one has even suggested we consider
> it yet.
>
> regards, tom lane
Well, this is not a problem at all. We just need to have two scripts:
one for Python 2 and one for Python 3 (it is not possible to have one
script compatible for both versions insofar Python 3 is not
backward-compatible). Another possibility is to have just one script for
Python 2, but no support for Python 3.
Tell me what you prefer.
Léonard Benedetti