Re: psycopg for Python 3.0

"James Henstridge" <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On Mon, Nov 17, 2008 at 6:12 AM, Federico Di Gregorio <fog-NGVKUo/i/[email protected]> wrote:
> Il giorno dom, 16/11/2008 alle 15.05 -0500, Gerry Reno ha scritto:
>> The final release of Python 3.0 will happen in December 2008.
>> Is there a version of psycopg that works with Python 3.0?
>
> If they didn't changed the module interface too much it should work
> almost out of the box.

There are some larger changes in the C API of Python 3.0 (e.g. objects
contain a structure containing type and ref count, rather than
directly embedding those members), but there are some compatibility
macros in Python 2.6.

I think it'd be possible to port these backward compatibility macros
back to at least Python 2.4, which would greatly reduce the amount of
code that needs changing for 3.0.

There will be some backward incompatible changes (especially in the
Python code level), so I'd recommend a separate branch for 3.0
development.  By keeping the delta between the 3.0 and 2.x branches
close, hopefully it'll be possible to merge fixes from one branch to
the other.

James.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.