File I/O

MonkeeSage MonkeeSage at gmail.com
Sat Sep 30 03:12:56 EDT 2006


Diez B. Roggisch wrote:
> Good to know that you can get drunk under any circumstances.

+(++)1 heh!

> I have seen a bazillion bad xml/html parsing-hacks using regexes and the
> like, which stopped working after somehow the xml came all in one line, or
> some other implicit assumption about its layout failed to be met.

Seriously, I fully agree with you. To manipulate X/HT/ML data reliably
you need to use a parser. And usually the parser API is much cleaner
and easier to work with than trying to cobble together regexps anyhow!

Regards,
Jordan




More information about the Python-list mailing list