-
-
Notifications
You must be signed in to change notification settings - Fork 32k
pathlib.Path.read_text should include a newline argument #110745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Thanks for all the great software! I would like to work on this issue. This is my first contribution to cpython, but I will do my best! |
Okabe-Junya
added a commit
to Okabe-Junya/cpython
that referenced
this issue
Oct 14, 2023
barneygale
added a commit
that referenced
this issue
Nov 21, 2023
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Barney Gale <[email protected]>
Resolved in #110880. Thank you very much @Okabe-Junya! |
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…thon#110880) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Barney Gale <[email protected]>
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
…thon#110880) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Barney Gale <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
Support for a
newline
argument was added to thewrite_text
method in Python 3.10 (issue #67894).I've been using this method but I've found a need for a
newline
method forread_text
as well.Here's the scenario where this would be handy (namely reading and writing the original newlines):
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
I have not found any prior discussions or mentions of
newline
argument being supported forread_text
outside of the initial pathlib API discussion (#64417 (comment)).Linked PRs
The text was updated successfully, but these errors were encountered: