[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:


Basically my request would be to change the documentation here:


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>

More information about the New-bugs-announce mailing list