Thanks for the suggestions and modified module. I will probably just use this "fixed" module to solve my immediate problem.
Expect its performance to be worse than the standard version - it does the right thing, but it sure ain't pretty. . .
Cheers, Nick.
-- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.skystorm.net -- http://mail.python.org/mailman/listinfo/python-list