SpaceOne added the comment:

IMHO your rejection is stupid. User input should always be validated.

At least a ValueError should be raised if add_section() is called with a string 
containing ']\x00\n['. As this will always create a broken configuration.

Otherwise ConfigParser cannot be used to write new config files without having 
deeper knowledge about the implementation.

----------
nosy: +spaceone

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

Reply via email to