Skip to content

closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. #17112

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

Merged
merged 1 commit into from
Nov 12, 2019
Merged

closes bpo-27805: Ignore ESPIPE in initializing seek of append-mode files. #17112

merged 1 commit into from
Nov 12, 2019

Conversation

benjaminp
Copy link
Contributor

@benjaminp benjaminp commented Nov 12, 2019

This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode.

https://bugs.python.org/issue27805

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vstinner
Copy link
Member

I agree with backporting the change to 3.7 and 3.8.

@benjaminp
Copy link
Contributor Author

Thank you for the review.

…iles.

This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode.
@benjaminp benjaminp merged commit 74fa9f7 into python:master Nov 12, 2019
@benjaminp benjaminp deleted the open-ESPIPE branch November 12, 2019 22:51
@miss-islington
Copy link
Contributor

Thanks @benjaminp for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @benjaminp, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 74fa9f723f700a342e582b5ad4b51a2c4801cd1c 3.8

@miss-islington
Copy link
Contributor

Sorry @benjaminp, I had trouble checking out the 3.7 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 74fa9f723f700a342e582b5ad4b51a2c4801cd1c 3.7

benjaminp added a commit that referenced this pull request Nov 12, 2019
…mode files. (GH-17112)

This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode..
(cherry picked from commit 74fa9f7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
@bedevere-bot
Copy link

GH-17136 is a backport of this pull request to the 3.8 branch.

benjaminp added a commit that referenced this pull request Nov 12, 2019
…mode files. (GH-17112)

This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode..
(cherry picked from commit 74fa9f7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
@bedevere-bot
Copy link

GH-17137 is a backport of this pull request to the 3.7 branch.

@Gunni
Copy link

Gunni commented Nov 20, 2019

Is there any chance of getting this fix backported to 3.6?

@vstinner
Copy link
Member

Is there any chance of getting this fix backported to 3.6?

Python upstream doesn't accept bugfixes into 3.6 anymore: https://devguide.python.org/#status-of-python-branches

You may contact your favorite Linux vendor.

jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
…iles. (pythonGH-17112)

This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode.
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
…iles. (pythonGH-17112)

This change, which follows the behavior of C stdio's fdopen and Python 2's file object, allows pipes to be opened in append mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants