This weekend I’ve been busy porting MySQL Connector/Python to Python 3.1 in a new experimental branch. It is quite a challenge and I was advised to actually rewrite the whole thing for Py3K. However, after crawling through the TypeErrors and other exceptions I figured I did good with porting the code. It helps to re-factor some ancient, weird lines of code and learns me the new goodies coming with Python v3.1.
Status: examples are somehow working, but not all unittests. So we are like 60% away from having MySQL under Python 3.1.
I must say that I love Python 3.1! Especially the Text and Data concept! The major caveat is that we’ll have to maintain 2 branches since it’s totally incompatible with previous Python versions.
So how we are going to name Python 2K and 3K branches? Shall we pack both Python v2.x and v3.x in the same package and let the setup tools decide what to install? I’m favoring this, so there is no “What shall I download?” confusion.
Universal Python Eggs anyone?