Skip to content
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

[3.13] Doc: Recommend shlex.quote alongside pipes removal (GH-126570) #126820

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 14, 2024

One of the most common reasons I see the old pipes module still in use
when porting to Python 3.13 is for the undocumented pipes.quote
function, which can easily be replaced with shlex.quote. I think it's
worth specifically calling this out, since being directed to the
subprocess module would be confusing in this case.
(cherry picked from commit 73e34b6)

Co-authored-by: Colin Watson [email protected]


📚 Documentation preview 📚: https://cpython-previews--126820.org.readthedocs.build/

One of the most common reasons I see the old `pipes` module still in use
when porting to Python 3.13 is for the undocumented `pipes.quote`
function, which can easily be replaced with `shlex.quote`.  I think it's
worth specifically calling this out, since being directed to the
`subprocess` module would be confusing in this case.
(cherry picked from commit 73e34b6)

Co-authored-by: Colin Watson <[email protected]>
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news skip issue labels Nov 14, 2024
@hauntsaninja hauntsaninja enabled auto-merge (squash) November 14, 2024 05:02
@hauntsaninja hauntsaninja merged commit 94e536e into python:3.13 Nov 14, 2024
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants