Re: Python 3.1 support
От | Peter Eisentraut |
---|---|
Тема | Re: Python 3.1 support |
Дата | |
Msg-id | 1258102295.7053.20.camel@fsopti579.F-Secure.com обсуждение исходный текст |
Ответ на | Re: Python 3.1 support (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
On tor, 2009-11-12 at 16:06 -0500, Tom Lane wrote: > Peter Eisentraut <peter_e@gmx.net> writes: > > 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. > > There was considerable debate earlier about whether we wanted to treat > Python 3 as a separate PL so it could be available in parallel with > plpython 2, because of the user-level coding incompatibilities. It > looks like this patch simply ignores that problem. Exactly how to package that is something to be determined by the packagers, and we can give them the support they need. But first you need code that works with Python 3, which is what this patch does. > What is going to happen to plpython functions that depend on 2.x behavior? The porting path from 2 to 3 is pretty well established. You first port to 2.6, then remove all the old features, then move to 3.x. This is not something we have to reinvent. The only significant differences that you can't use in 2.6 without future imports are unicode literals and the print function, both of which are not in common use in PL/Python.
В списке pgsql-hackers по дате отправления: