> I have to figure out where the appropriate place is to trim the NULL > byte from the end of each line and things should be cool. I'd say it's in the C API, when it creates Python objects. The terminating 0 should not be counted towards the size of the string if you are using PyString_FromStringAndSize; you better use PyString_FromString in this case. Regards, Martin