Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-66944: Note that thecontextlib.closing example is for illustration purposes#112198

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AA-Turner merged 3 commits intopython:mainfromscop:docs-contextlib-urlopen
Jan 23, 2024

Conversation

@scop
Copy link
Contributor

@scopscop commentedNov 17, 2023
edited
Loading

Just stumbled upon theurlopen example incontextlib.closing docs and later found#66944 open for it, here's a quick crack at at least documenting the unnecessity these days.


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

@AA-TurnerAA-Turner changed the titlegh-66944: Note no need to usecontextlib.closing withurlopengh-66944: Note that thecontextlib.closing example is for illustration purposesJan 12, 2024
@AA-TurnerAA-Turner added needs backport to 3.11only security fixes needs backport to 3.12only security fixes labelsJan 12, 2024
@AA-TurnerAA-Turnerenabled auto-merge (squash)January 23, 2024 01:00
@AA-TurnerAA-Turner merged commit9af9ac1 intopython:mainJan 23, 2024
@miss-islington-app
Copy link

Thanks@scop for the PR, and@AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJan 23, 2024
…ustrative purposes (pythonGH-112198)(cherry picked from commit9af9ac1)Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJan 23, 2024
…ustrative purposes (pythonGH-112198)(cherry picked from commit9af9ac1)Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@bedevere-app
Copy link

GH-114458 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelJan 23, 2024
@bedevere-app
Copy link

GH-114459 is a backport of this pull request to the3.11 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.11only security fixes labelJan 23, 2024
AA-Turner pushed a commit that referenced this pull requestJan 23, 2024
AA-Turner pushed a commit that referenced this pull requestJan 23, 2024
Copy link
Contributor

@danielhollasdanielhollas left a comment

Choose a reason for hiding this comment

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

Late to the party but spotted a typo...

..note::

Most types managing resources support the:term:`context manager` protocol,
which closes *thing* on leaving the:keyword:`with` statment.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
which closes *thing* on leaving the:keyword:`with`statment.
which closes *thing* on leaving the:keyword:`with`statement.

@AA-Turner
Copy link
Member

Thanks Daniel, would you want to open a PR? You can add me as a reviewer.

A

danielhollas reacted with thumbs up emoji

@scopscop deleted the docs-contextlib-urlopen branchJanuary 26, 2024 16:00
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…ustrative purposes (python#112198)Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…ustrative purposes (python#112198)Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AA-TurnerAA-TurnerAA-Turner left review comments

@1st11st1Awaiting requested review from 1st1

+1 more reviewer

@danielhollasdanielhollasdanielhollas left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

docsDocumentation in the Doc dirskip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@scop@AA-Turner@danielhollas

[8]ページ先頭

©2009-2025 Movatter.jp