-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
email: documenting different behavior of trailing newline in set_content
and set_payload
#121542
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
Eclips4
pushed a commit
that referenced
this issue
Jan 18, 2025
…1543) Co-authored-by: Yizheng Meng <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 18, 2025
pythonGH-121543) (cherry picked from commit fba475a) Co-authored-by: Peter Bierma <[email protected]> Co-authored-by: Yizheng Meng <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jan 18, 2025
pythonGH-121543) (cherry picked from commit fba475a) Co-authored-by: Peter Bierma <[email protected]> Co-authored-by: Yizheng Meng <[email protected]>
This was referenced Jan 18, 2025
Eclips4
pushed a commit
that referenced
this issue
Jan 18, 2025
…)` (GH-121543) (#128995) gh-121542: Document trailing newline behavior in `set_content()` (GH-121543) (cherry picked from commit fba475a) Co-authored-by: Peter Bierma <[email protected]> Co-authored-by: Yizheng Meng <[email protected]>
Eclips4
pushed a commit
that referenced
this issue
Jan 18, 2025
…)` (GH-121543) (#128996) gh-121542: Document trailing newline behavior in `set_content()` (GH-121543) (cherry picked from commit fba475a) Co-authored-by: Peter Bierma <[email protected]> Co-authored-by: Yizheng Meng <[email protected]>
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this issue
Jan 21, 2025
python#121543) Co-authored-by: Yizheng Meng <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Uh oh!
There was an error while loading. Please reload this page.
Documentation
See #121515, which reported that
set_content()
implicitly adds a newline to the end of the content (if it doesn't have one already), whereasset_payload()
ignores it. Unfortunately, this would be a breaking change to fix, so we should just document this behavior.Linked PRs
set_content()
#121543set_content()
(GH-121543) #128995set_content()
(GH-121543) #128996The text was updated successfully, but these errors were encountered: