File-like filter pattern?
Fredrik Lundh
fredrik at pythonware.com
Thu Dec 19 02:37:36 EST 2002
Erik Max Francis wrote:
>
> Thanks for your contribution, but I wasn't really asking about _how_ to
> implement filters -- after all, that's already been done in EmPy. I was
> just asking if there were some commonly accepted idiom for implementing
> push filters that is already common within the Python community; it
> would appear not.
in addition to the file protocol, the (reset)/feed/close protocol used
by sgmllib/xmllib and most XML parsers is pretty common. and about
as simple as anything can be.
</F>
More information about the Python-list
mailing list