Skip to content

gh-62491: codecs text streams now split lines only with \r, \n and \r\n. - #9711

Open
serhiy-storchaka wants to merge 2 commits into
python:mainfrom
serhiy-storchaka:codecs-splitlines
Open

serhiy-storchaka wants to merge 2 commits into
python:mainfrom
serhiy-storchaka:codecs-splitlines

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Oct 5, 2018 •

Copy link
Copy Markdown
Member

This behavior is compatible with io text streams in universal newlines
mode. Previously they split lines using Unicode line terminators as in
str.splitlines().

https://bugs.python.org/issue18291

…r\n.

This behavior is compatible with io text streams in universal newlines
mode. Previously they split lines using Unicode line terminators as in
str.splitlines().
@methane

methane commented Oct 5, 2018

Copy link
Copy Markdown
Member

No need to use _ prefix for new functions?

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Since __all__ is defined there is no need to use _ prefix.

@vstinner

Copy link
Copy Markdown
Member

I removed the " needs backport to 3.6" label, the 3.6 branch no longer accept bugfixes (only security fixes are accepted): https://devguide.python.org/#status-of-python-branches

@arhadthedev arhadthedev changed the title bpo-18291: codecs text streams now split lines only with \r, \n and \r\n. Apr 15, 2023
@arhadthedev

Copy link
Copy Markdown
Member

@serhiy-storchaka Does this PR have a chance to go into 3.12b1?

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO-NOT-MERGE stale Stale PR or inactive for long period of time. topic-IO topic-unicode type-bug An unexpected behavior, bug, or error

9 participants