padremayi <francesco.ot...@gmail.com> added the comment:

IMHO if the developer doesn't manage the XML itself it is VERY unreasonable to 
use the document value and not the developer one. At the moment the developer 
must predict the future changes on XML structure.

For my point of view if an attribute is not present get() must return None (or 
the default value passed by developer) AND the document default adding an 
optional parameter to get() call: if True return 2 values, otherwise return the 
document one (current behaviour).

In this way the old code continue to work

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46798>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to