On 12/20/2010 2:49 PM, Adam Tauno Williams wrote:

Yes, this is a terrible technique;  most examples are crap.

Yes, this is using DOM.  DOM is evil and the enemy, full-stop.

You're still using DOM; DOM is evil.

For serial processing, DOM is superfluous superstructure.
For random access processing, some might disagree.


Which one is the best for my situation ?
Any&  all
code_snippets/wisdom/thoughts/ideas/suggestions/feedback/comments/ of
the c.l.p community would be greatly appreciated.
Plz feel free to email me directly too.

<http://docs.python.org/library/xml.sax.html>

<http://coils.hg.sourceforge.net/hgweb/coils/coils/file/62335a211fda/src/coils/foundation/standard_xml.py>

For Python (unlike Java), wrapping module functions as class static methods is superfluous superstructure that only slows things down.

    raise Exception(...) # should be something specific like
    raise ValueError(...)

--
Terry Jan Reedy

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to