Toby Dickenson <tdickenson at devmail.geminidataloggers.co.uk> writes: > That still wont fly, because 'print' always passes the to-be-printed > objects through str() before calling file.write() In Python 2.2, this is no longer true, due to patch #462849, applied as fileobject.c 2.127. This is very similar to your patch. Regards, Martin