[XML-SIG] empty namespaces

Alexandre Fayolle Alexandre.Fayolle@logilab.fr
Tue, 20 Nov 2001 09:25:22 +0100 (CET)


On 19 Nov 2001, Lars Marius Garshol wrote:

> * Alexandre Fayolle
> | 
> | Would adding an "EMPTY_NAMESPACE = None" to xml/dom/__init__.py,
> | just after the definitions of XML_NAMESPACE and XMLNS_NAMESPACE be
> | considered to be a good idea?
> 
> I don't think so. We're not going to change this, so I don't really
> see what we achieve by it.

Source code readability. In the code I write, I tend to use symbolic
constants for the namespaces I use. Having EMPTY_NAMESPACE as an alias for
None makes the code more readable. 

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).