Will MySQL ever be supported for Python 3.x?

Tim Roberts timr at probo.com
Sun Apr 1 01:54:14 EDT 2012


John Nagle <nagle at animats.com> wrote:

>On 3/30/2012 2:32 PM, Irmen de Jong wrote:
>> Try Oursql instead  http://packages.python.org/oursql/
>> "oursql is a new set of MySQL bindings for python 2.4+, including python 3.x"
>
>    Not even close to being compatible with existing code.   Every SQL
>statement has to be rewritten, with the parameters expressed
>differently.  It's a good approach, but very incompatible.

Those changes can be automated, given an adequate editor.  "Oursql" is a
far better product than the primitive MySQLdb wrapper.  It is worth the
trouble.
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list