[New-bugs-announce] [issue23706] pathlib.Path.write_text should include a newline argument

Ugra Dániel report at bugs.python.org
Thu Mar 19 10:32:41 CET 2015


New submission from Ugra Dániel:

The new pathlib.Path [read|write]_[binary|text] methods will be very useful, one thing I miss badly is the newline argument for write_text.

In some cases text files need a specific line ending (independent from the platform the code is being executed on.) In my mind this is analogous to passing an explicit encoding argument.

Of course, one can always use built-in open for this scenario. It would be a nice addition anyway :)

----------
components: Library (Lib)
messages: 238498
nosy: daniel.ugra
priority: normal
severity: normal
status: open
title: pathlib.Path.write_text should include a newline argument
type: enhancement
versions: Python 3.5

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


More information about the New-bugs-announce mailing list