Is 's BUG?

Richard Brodie R.Brodie at
Thu Oct 18 11:15:32 CEST 2001

"limodou" <chatme at> wrote in message news:ce82f84e.0110172143.52b65634 at
> Sometimes I use python to analyse a HTML document. But I found that if
> there is a tag start with '<!' not '<!--', sgmllib with treat it as a
> 'special' pattern. It'll be ok mostly, occasionaly failed. Because
> sometimes someone can use tag '<!' for comment.

If they don't use the right syntax, it's hard to parse it automatically.
You'll end up with a huge mass of spaghetti code* if you try to work
out what people meant to write instead of what they actually wrote.

*or web browser as they are generally known.

More information about the Python-list mailing list