[Tutor] Expression matching

Remco Gerlich scarblac@pino.selwerd.nl
Thu, 10 May 2001 03:14:45 +0200


On  0, Walter Vannini <walterv@jps.net> wrote:
> Remco,
> 
> Shouldn't it be
>     htmllib.HTMLParser.__init__(self,
> formatter.NullFormatter())
> instead of
>     htmllib.HTMLParser.__init__(self,
> formatter.NullFormatter)
> 
> (and "self.linklist" instead of "linklist" in:
>     def change_html(self, html):
>        # Use the linklist and the modify_link function to
> return new html
>        for link in linklist:
>           html = html.replace(link, modify_link(link))
>        return html
> )?

Correct in both cases. I tend to just write things into the mail editor
thinking it'll be alright, I'll have to invent some macro in jed that tests
it as well, it's getting embarassing.


(Off topic - I'm drunk, and just returned from the first night of the
four-day party - and I've been kissing *the wrong girl*. Complications are
far more staggering than you'll ever see in programming).

-- 
Remco Gerlich