Erik Max Francis <max at alcyone.com> writes: > Is there a commonly accepted pattern for implementing file-like filters > in Python? Codecs work this way, see codecs.StreamReader and codecs.StreamWriter. Regards, Martin