Home |  MySQL Buzz |  FAQ |  Feeds |  Submit your blog feed |  Feedback |  Archive |  Aggregate feed RSS 2.0 English Deutsch Español Français Italiano 日本語 Русский
Which Python versions should MySQL Connector/Python support?
+0 Vote Up -0 Vote Down

Today we had a bug report that one of the tests failed. The as-keyword was used in exception handling, which is only supported since Python v2.6.

Currently, MySQL Connector/Python should work with Python v2.4 and greater, but not Python v3.x. The Connector/Python README said we supported v2.3, but that's not the case (anymore) since  decorators are used, e.g. @classmethod.

I'll have to pull the trigger, but I think it's safe to say that we're only going to support Python v2.4 and greater. For Python v3 we'll probably have to make an additional branch and release later on. I still have to check what the impact is.

If anyone has compelling reasons why we still should support Python v2.3 or earlier, please let us know. Also, tips on making it backward compatible are welcome.

Currently, the status of compatibility is as follows (output of shell script):

Checking Python v2.3.. Failed!
Checking Python v2.4.. Success!
Checking Python v2.5.. Success!
Checking Python v2.6.. Success!
Checking Python v3.0.. Failed!
Checking Python v3.1.. Failed!

Votes:

You must be logged in with a MySQL.com account to vote on Planet MySQL entries. More information on PlanetMySQL voting.

Planet MySQL © 1995-2008 MySQL AB, 2008-2009 Sun Microsystems, Inc.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Sun Microsystems, Inc. and does not
necessarily represent the opinion of Sun Microsystem, Inc. or any other party.