Thursday, December 4, 2008

Python 3.0 and mod_wsgi.

Now that Python 3.0 has been released, it is probably worth while pointing out that mod_wsgi has been ported to Python 3.0 for quite a while now. It didn't always work, but that was actually because various versions of the Python 3.0 betas and release candidates managed to break support for sub interpreters. All these issues in Python 3.0 have been fixed now and mod_wsgi appears to be working fine for a basic WSGI test case. Of course, with Python 3.0 being so new and with the internal changes required to mod_wsgi to handle Unicode strings, there are no doubt some gremlins lurking in the mod_wsgi changes still. One can just hope that the WSGI folks out there don't ignore Python 3.0 for too long and start on porting some stuff to Python 3.0. This will then give me some decent code on which to test out mod_wsgi support for Python 3.0.

Note that if you want to play with mod_wsgi and Python 3.0, you will need to use the mod_wsgi source code directly from the subversion repository. You will also need to be aware of the proposed amendments to the WSGI 1.0 specification to make it compatible with Python 3.0.