[docs] [issue13823] xml.etree.ElementTree.ElementTree.write - argument checking

Eli Bendersky report at bugs.python.org
Sun Jul 15 05:35:40 CEST 2012

Eli Bendersky <eliben at gmail.com> added the comment:

About (1):

It's customary for Python to accept "truthful" values (like non-empty strings) as True. I see no harm in that. Strict type-checking to boolean True in each and every place is not necessary.

About (2):

Similarly, this isn't productive. ET may not know about all encodings underlying the system. The warning is clearly documented - it's up for the user to make sure it's valid.

resolution:  -> wont fix
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the docs mailing list