[issue23706] pathlib.Path.write_text should include a newline argument

Maxim Burov report at bugs.python.org
Sun Sep 27 13:11:26 EDT 2020


Maxim Burov <maksvenberv at gmail.com> added the comment:

For the newline parameter, what is the expected behaviour? To work as newline from io.open() which supports only so called "legal" newlines which are: None, '', '\n', '\r', and '\r\n', or to allow users use any sequence as newline hence do replacing before passing text to io.open()?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue23706>
_______________________________________


More information about the Python-bugs-list mailing list