[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-27 Thread library.engine

library.engine  added the comment:

I second request for tag names not prefixed with a root namespace in python,
mostly because of ugly code, as performance degradation is negligible on 
relatively small files. But this ubiquitous repeating (even in the case if 
you're appending a variable to every tag name) is just against the DRY 
principle, and I don't like it.
I think an extra option to pass list of namespaces that should NOT be prepended 
to the tag names would be sufficient.

--
nosy: +library.engine

___
Python tracker 
<http://bugs.python.org/issue8583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread library.engine

library.engine  added the comment:

What is so implicit in the passing of a list of undesired namespaces to the 
parse function?
This is quite explicit, in my humble opinion, and it lets you not to repeat 
yourself for each and every tag you want to find in the tree, as well.

--

___
Python tracker 
<http://bugs.python.org/issue8583>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com