also visit: Theatre of Noise | Soundings

about: this site | me

subscribe: RSS

21 September 2006

Python 2.5 Released

Python 2.5 has been released, ahead of schedule. I announced this version back in March, at which time it was due in mid-October. See that previous post for a summary of new features. I'll cover others here.

In making the transition, there's one thing to look out for in your code modules. If you use any non-ASCII characters you need to put a declaration at the top of the file specifying the encoding. In Python 2.4 this triggered a warning, but now it gives you a syntax error. Go fix those files!

Several deprecated modules have finally been removed, so if your code uses any of the following you will finally have to rewrite: regex, regsub, statcache, tzparse, whrandom.

In addition to those I mentioned before, there are further new standard library modules. ctypes lets you call arbitrary functions in shared libraries or DLLs. wsgiref provides a WSGI-compatible web server for testing purposes.

A wrapper for the SQLite embedded database has been added, as sqlite3. I have used this database as an easily administered alternative to the "big boys". It's great for testing or to include in a standalone application.

As usual, performance has been improved, though maybe not as dramatically as in previous versions.

Finally, a nice tweak to the interpreter means that typing quit() or exit() will now exit the shell. It's common sense and long overdue, IMO.

Pocoo: A Python Bulletin Board

Want an open-source Python application for hosting your own bulletin board software / message board / forum / what'cha'call-it? Help is on it's way thanks to the fine folks at Pocoo. Though only version 0.1, this app has a nice editor, threaded posts, an extensible authentication scheme and what looks on quick glance to be nicely written and documented code.

Since Pocoo is written using SQLAlchemy, it supports many databases transparently. It is also WSGI compliant. Jinja is used for templating. The web site is clear and contains with a fully-operational demo.

This is a big step towards filling a gap in Python application software. If you have some spare time maybe you'd like to help the development team out?