Python Projects
Projects I'm working on in the Python programming language.





Subscribe to "Python Projects" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Wednesday, May 28, 2003
 

Thinking About Filters

As I mentioned before, the Tidy function from the mx extensions acts as a filter, taking in possibly-malformed HTML, and outputting well-formed XHTML.  What I'd really like to do is use the filter metaphor more concisely in my code.  Never one to re-invent the wheel, I googled for 'file-like filter pattern' and behold, found this interesting thread on the comp.lang.python newsgroup.

This is spot-on for what I want to do.  I'm going to take some time and study this concept.  It may actually be overkill for my simple use, but hey, this is a learning experience.


9:59:45 PM    comment []


Click here to visit the Radio UserLand website. © Copyright 2003 Michael Kent.
Last update: 6/26/2003; 12:13:56 PM.
This theme is based on the SoundWaves (blue) Manila theme.
May 2003
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Apr   Jun