mod_python and xml.dom.minidom

Stefan Behnel stefan_ml at behnel.de
Sat May 9 01:07:25 EDT 2009


Daniel Fetchinson wrote:
> On 5/8/09, dpapathanasiou wrote:
>> I wrote a python script called xml_utils.py which parses xml using
>> minidom.
> 
> My only advice is, don't use mod_python. The project is dead, you
> should use mod_wsgi instead: http://code.google.com/p/modwsgi/

Now that we're at it anyway: don't use minidom, either. It's rather slow
and very memory expensive. The stdlib comes with ElementTree since Python 2.5.

http://effbot.org/zone/celementtree.htm#benchmarks

Stefan



More information about the Python-list mailing list