Re: psycopg for Python 3.0

Tim Roberts <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Organization Providenza & Boekelheide, Inc.
Message-ID <[email protected]>
Gerry Reno wrote:
> Federico Di Gregorio 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.
>>   
> Doesn't Py 3.0 handle unicode strings differently than 2.x?  So
> wouldn't there need to be some changes in psycopg?

Actually, the string handling is not all that dramatically different. 
The key is that the native string type in 3.0 is what used to be the
Unicode string type in 2.x.  The 8-bit string type is gone, replaced by
a new "byte" string type.

I think Federico is underestimating the conversion effort, but it
shouldn't be a complete rewrite.

-- 
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
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.