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 eric.smith
Recipients eric.smith, jaraco
Date 2022-01-08.06:54:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641624896.4.0.599719714282.issue46304@roundup.psfhosted.org>
In-reply-to
Content
Hi, Jason.

How about:

>>> from pathlib import Path
>>> Path("foo.txt").read_text().splitlines()
['how', 'now', 'brown', 'cow']

Not the most elegant thing, I'll admit.
History
Date User Action Args
2022-01-08 06:54:56eric.smithsetrecipients: + eric.smith, jaraco
2022-01-08 06:54:56eric.smithsetmessageid: <1641624896.4.0.599719714282.issue46304@roundup.psfhosted.org>
2022-01-08 06:54:56eric.smithlinkissue46304 messages
2022-01-08 06:54:56eric.smithcreate