I recently rediscovered this strange behaviour in Python’s Unicode handling.—Evan

Theoretically the name is unimportant, but read(..., final=True) or flush() or close() should subject the pending bytes to normal error handling and must return the result of decoding these pending bytes just like the other methods do. This would mean that we would have to implement a decodecode(), a readclose() and a readlineclose(). IMHO it would be best to add this argument to decode, read and readline directly. But I’m not sure, what this would mean for iterating through a StreamReader.

Bye,—Walter