[New-bugs-announce] [issue34319] Clarify pathlib.Path("filepath").read_text()

Thomas Nyberg report at bugs.python.org
Thu Aug 2 07:52:33 EDT 2018


New submission from Thomas Nyberg <tomnyberg at gmail.com>:

This came out of the following posts:

https://mail.python.org/pipermail/python-ideas/2018-August/052549.html
https://mail.python.org/pipermail/python-ideas/2018-August/052553.html

Basically my request would be to change the documentation here:

https://docs.python.org/3.7/library/pathlib.html#pathlib.Path.read_text

I would like to add a note that the underlying file object itself is closed after the read_text() method is called. Maybe I'm just a little dense and it should be obvious that the functionality here would be different than open("filepath").read(), but given that thread I linked, I don't believe I'm the only one.

----------
assignee: docs at python
components: Documentation
messages: 322947
nosy: docs at python, thomas.nyberg
priority: normal
severity: normal
status: open
title: Clarify pathlib.Path("filepath").read_text()

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


More information about the New-bugs-announce mailing list