This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author thomas.nyberg
Recipients docs@python, thomas.nyberg
Date 2018-08-02.11:52:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533210753.86.0.56676864532.issue34319@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-08-02 11:52:33thomas.nybergsetrecipients: + thomas.nyberg, docs@python
2018-08-02 11:52:33thomas.nybergsetmessageid: <1533210753.86.0.56676864532.issue34319@psf.upfronthosting.co.za>
2018-08-02 11:52:33thomas.nyberglinkissue34319 messages
2018-08-02 11:52:33thomas.nybergcreate