[issue13378] Change the variable "nsmap" from global to instance (xml.etree.ElementTree)

Florent Xicluna report at bugs.python.org
Fri Nov 11 01:23:33 CET 2011


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

This patch proposes an implementation of the feature.


>>> from xml.etree import ElementTree as ET
>>> ET.tostring(ET.Element('{http://localhost/house}iq'), encoding="unicode", namespaces={'http://localhost/house': 'home'})
'<home:iq xmlns:home="http://localhost/house" />'

----------
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file23655/issue13378_non_global_namespaces.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13378>
_______________________________________


More information about the Python-bugs-list mailing list