-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
newline is (partially) independent of universal newlines; needs to be made more clear in docs #64921
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
Comments
http://docs.python.org/3.4/library/functions.html#open says "newline controls how universal newlines mode works (it only applies to text mode)." My reading of this when I saw it was that newline= doesn't do anything unless universal newlines mode is enabled. This is untrue, and you can infer it's untrue from the following lines, but then the docs appear to contradict themselves. Please fix to say something more along the lines of "newline controls how newlines are read and written. It only applies to text mode." The interactions with universal newlines mode are explained in the following text, so they don't need to be called out upfront. newline does more than just that. |
Additionally, the deprecation notice for 'U' in the table of modules should mention that the 'U' mode, not universal newlines, is deprecated because it is unnecessary. Or 'controlled by the newline argument' perhaps. |
@Yhg1s's comment no longer applies to the docs versions we're still maintaining; |
) (cherry picked from commit 4a74e6a) Co-authored-by: Stanley <[email protected]>
) (cherry picked from commit 4a74e6a) Co-authored-by: Stanley <[email protected]>
(cherry picked from commit 4a74e6a) Co-authored-by: Stanley <[email protected]>
(cherry picked from commit 4a74e6a) Co-authored-by: Stanley <[email protected]>
(cherry picked from commit 4a74e6a) Co-authored-by: Stanley <[email protected]>
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: