> The codec will place the work done so far into the third > tuple argument and the position which caused the failure > into the second. reason can be used to provide additional > information to the caller. How does that work with writelines()? In this case, the caller does not have the string which the position refers to. Regards, Martin