Archive for August, 2003

A Patch for Hep 0.3.3

Wednesday, August 6th, 2003

A number of people have emailed me recently to report that Hep 0.3.3 breaks

after they upgrade Twisted to a version higher than (approximately) 1.0.2.

My response up to this point has been “downgrade to Twisted 1.0.2″ (and these

users have been kind enough to do so without complaining), but I finally

took the time to figure out exactly what broke, and fix it. So now you

can run Hep 0.3.3 with the latest version of Twisted – just download

this file,

and copy it over the pop3.py in your hep/servers/ directory.

(Thanks to Luc Stepniewski for the

email that nudged me over the edge towards fixing the problem, and for

testing the patch).

Last Week’s News, Today!

Wednesday, August 6th, 2003

If you’re a regular reader of this site, you’re probably in tune with

what’s going on in the world of Python, in which case I don’t have to

tell you that Python 2.3 was

released last week.

The advantage of reporting news a week late is, I suppose, that I can

take the time to explore it a bit before writing. So I think I can state

firmly that Python 2.3 is very nice. In fact, it has enough improvements and new

modules that I’m seriously considering throwing backwards compatibility

out the window and enthusiastically adopting Python 2.3 for all my current

and future projects.

Some of the new features I’ll be using:

  • csv – this could have saved me many hours of work at my day job,

    had I known about it 4 months ago.

  • datetime – finally, real datetime types, and methods to convert

    datetime objects into all the commonly used string formats.

  • DocXMLRPCServer – I probably won’t use this directly, as I don’t

    think it will integrate with Twisted, but the concept is very cool and I

    may be able to port/import some code.

  • logging
  • optparse – easy command line parsing and –help option printing
  • textwrap – utilities for wrapping long lines of text by inserting

    line breaks. This will be a big help in the Hep messaging library.

  • sets – compare and combine dictionaries without nested-loop

    silliness.

For more details on the new features of Python 2.3, see

the Python 2.3

Highlights page, and

>the effbot Python Standard Library New Modules page.