Serhiy Storchaka added the comment: Patch updated (tostring() and tostringlist() refet to write() about short_empty_elements parameter). Perhaps descriptions of encoding and method parameters should not be repeated too?
> Why do you force short_empty_elements to be keyword only? Because sequences of parameters in XMLGenerator(), ElementTree.write(), ElementTree.tostring() are different and this can confuse. Also it will be easer to deprecate or rename keyword-only parameter in future (in favor of general fabric for example). I think that all optional, non-basic and very rarely used parameters should by keyword-only. ---------- Added file: http://bugs.python.org/file28715/etree_short_empty_elements_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14377> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com