Serhiy Storchaka added the comment: Such function already exists in the stdlib! But with different order of arguments. See pathlib.Path.write_text().
Personally I'm very skeptical about usefulness of similar functions in the stdlib. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26605> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com