Serhiy Storchaka <> added the comment:

What is a problem with writing two lines of code?

    with open(...) as f:

If combine ConfigParser.write() with builtin open() you will need to add 
support of encoding, errors, buffering, newline, and other arguments supported 
by open(). And don't forgot to update this method after adding new parameters 
to open().

I'm -1. Not every two lines of code deserve including as a function in the 
stdlib. This will clutter the user interface, complicate the implementation, 
and add the burden to core developers for maintaining this code.

nosy: +serhiy.storchaka

Python tracker <>
Python-bugs-list mailing list

Reply via email to