| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2dd9b559-2f30-caa6-3e20-fd8ce1aa9242 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E212:1E79:7AD6DA:B14159:6A4CF0BC |
| html-safe-nonce | aa2859e5bc0300e2734474e1ccf8284925795a683aa876a1765f5f6c80508a4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjEyOjFFNzk6N0FENkRBOkIxNDE1OTo2QTRDRjBCQyIsInZpc2l0b3JfaWQiOiIzOTQzNzc2NTcwODM3ODg5MjEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2aca4b3758bf84647860319db39b321e67b371d07c118840e17d3704811e2430 |
| hovercard-subject-tag | pull_request:153507043 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/4464/files |
| twitter:image | https://avatars.githubusercontent.com/u/22473248?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/22473248?s=400&v=4 |
| og:image:alt | bpo-10049: Add a "no-op" (null) context manager to contextlib
Removed section in docs using ExitStack() for no-op context manager
https://bugs.python.org/issue10049 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | efec6750a5afcaeaf5dfcf629f404cf98c8371e3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/4464/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F4464%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F4464%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/4464/files |
| Reload | https://github.com/python/cpython/pull/4464/files |
| Reload | https://github.com/python/cpython/pull/4464/files |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.6k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| ncoghlan | https://github.com/ncoghlan |
| python:master | https://github.com/python/cpython/tree/master |
| Jesse-Bakker:add-contextlib-nullcontext | https://github.com/Jesse-Bakker/cpython/tree/add-contextlib-nullcontext |
|
Conversation
26
| https://github.com/python/cpython/pull/4464 |
|
Commits
9
| https://github.com/python/cpython/pull/4464/commits |
|
Checks
0
| https://github.com/python/cpython/pull/4464/checks |
|
Files changed
| https://github.com/python/cpython/pull/4464/files |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
|
bpo-10049: Add a "no-op" (null) context manager to contextlib
| https://github.com/python/cpython/pull/4464/files#top |
|
Show all changes
9 commits
| https://github.com/python/cpython/pull/4464/files |
|
3cc01ab
Add nullcontext to contextlib
Nov 19, 2017
| https://github.com/python/cpython/pull/4464/commits/3cc01aba0b1f4b9edc2f09e2ace650095437021d |
|
ca4d97e
Add nullcontext to contextlib
Nov 19, 2017
| https://github.com/python/cpython/pull/4464/commits/ca4d97e9559a900bd8f54d12a0fb618e7edf0f80 |
|
a194b9c
Docs typo and formatting
Nov 19, 2017
| https://github.com/python/cpython/pull/4464/commits/a194b9cc9f9cfef04e857856c4c668a5f02022f1 |
|
23cc840
Fix whitespace
Nov 19, 2017
| https://github.com/python/cpython/pull/4464/commits/23cc840658c2e91e907cb7bcc423e020b2877614 |
|
9373422
Change example in docs to a more common/intuitive one
Nov 19, 2017
| https://github.com/python/cpython/pull/4464/commits/937342205728bd7691e9947ccb4699e5a7deb509 |
|
7e6f26e
Edited lib and docs according to code review by @ncoghlan
Nov 22, 2017
| https://github.com/python/cpython/pull/4464/commits/7e6f26e53642c315d88a517718aaa4ba4ff24262 |
|
dec5304
Fixed docs indentation
Nov 22, 2017
| https://github.com/python/cpython/pull/4464/commits/dec53046251f7ca37c005ccb1c1ddcc8ce11954a |
|
89ffdef
Fix docs indentation
Nov 22, 2017
| https://github.com/python/cpython/pull/4464/commits/89ffdefebd42a46639c7ddf225e9e1f97503a350 |
|
9947ded
Fix versionadded directive
Nov 22, 2017
| https://github.com/python/cpython/pull/4464/commits/9947ded7ea605cab79ef69f6a7bd61f2fe685796 |
|
Clear filters
| https://github.com/python/cpython/pull/4464/files |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
|
contextlib.rst
| https://github.com/python/cpython/pull/4464/files#diff-a8e0406e6bc1be98e7e833d19599b151642ca471e7d0c71597bb2b8cfc0d2f31 |
|
contextlib.py
| https://github.com/python/cpython/pull/4464/files#diff-e00601a380ba6c916ba4333277fe6ea43d2477804002ab1ae64480f80fec8e3a |
|
test_contextlib.py
| https://github.com/python/cpython/pull/4464/files#diff-36de20f5f33e93654722aa17ba15b51aa3f58c573c477d69856069944db7994f |
|
2017-11-22-17-21-01.bpo-10049.ttsBqb.rst
| https://github.com/python/cpython/pull/4464/files#diff-da9f4c16dd499441c7d5cdd2bc29c2108193e66da5a42409d5e44bb257e2688d |
| Doc/library/contextlib.rst | https://github.com/python/cpython/pull/4464/files#diff-a8e0406e6bc1be98e7e833d19599b151642ca471e7d0c71597bb2b8cfc0d2f31 |
|
View file
| https://github.com/Jesse-Bakker/cpython/blob/9947ded7ea605cab79ef69f6a7bd61f2fe685796/Doc/library/contextlib.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/4464/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/4464/files#diff-a8e0406e6bc1be98e7e833d19599b151642ca471e7d0c71597bb2b8cfc0d2f31 |
| ncoghlan | https://github.com/ncoghlan |
| Nov 22, 2017 | https://github.com/python/cpython/pull/4464/files#r152490497 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
|
| https://github.com/python/cpython/pull/4464/files#diff-a8e0406e6bc1be98e7e833d19599b151642ca471e7d0c71597bb2b8cfc0d2f31 |
|
| https://github.com/python/cpython/pull/4464/files#diff-a8e0406e6bc1be98e7e833d19599b151642ca471e7d0c71597bb2b8cfc0d2f31 |
| merwok | https://github.com/merwok |
| Nov 21, 2017 | https://github.com/python/cpython/pull/4464/files#r152368036 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
| warsaw | https://github.com/warsaw |
| Nov 21, 2017 | https://github.com/python/cpython/pull/4464/files#r152372558 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
| ncoghlan | https://github.com/ncoghlan |
| Nov 22, 2017 | https://github.com/python/cpython/pull/4464/files#r152489514 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/4464/files |
|
| https://github.com/python/cpython/pull/4464/files#diff-a8e0406e6bc1be98e7e833d19599b151642ca471e7d0c71597bb2b8cfc0d2f31 |
| Lib/contextlib.py | https://github.com/python/cpython/pull/4464/files#diff-e00601a380ba6c916ba4333277fe6ea43d2477804002ab1ae64480f80fec8e3a |
|
View file
| https://github.com/Jesse-Bakker/cpython/blob/9947ded7ea605cab79ef69f6a7bd61f2fe685796/Lib/contextlib.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/4464/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/4464/files#diff-e00601a380ba6c916ba4333277fe6ea43d2477804002ab1ae64480f80fec8e3a |
|
| https://github.com/python/cpython/pull/4464/files#diff-e00601a380ba6c916ba4333277fe6ea43d2477804002ab1ae64480f80fec8e3a |
|
| https://github.com/python/cpython/pull/4464/files#diff-e00601a380ba6c916ba4333277fe6ea43d2477804002ab1ae64480f80fec8e3a |
| Lib/test/test_contextlib.py | https://github.com/python/cpython/pull/4464/files#diff-36de20f5f33e93654722aa17ba15b51aa3f58c573c477d69856069944db7994f |
|
View file
| https://github.com/Jesse-Bakker/cpython/blob/9947ded7ea605cab79ef69f6a7bd61f2fe685796/Lib/test/test_contextlib.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/4464/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/4464/files#diff-36de20f5f33e93654722aa17ba15b51aa3f58c573c477d69856069944db7994f |
|
| https://github.com/python/cpython/pull/4464/files#diff-36de20f5f33e93654722aa17ba15b51aa3f58c573c477d69856069944db7994f |
| Misc/NEWS.d/next/Library/2017-11-22-17-21-01.bpo-10049.ttsBqb.rst | https://github.com/python/cpython/pull/4464/files#diff-da9f4c16dd499441c7d5cdd2bc29c2108193e66da5a42409d5e44bb257e2688d |
|
View file
| https://github.com/Jesse-Bakker/cpython/blob/9947ded7ea605cab79ef69f6a7bd61f2fe685796/Misc/NEWS.d/next/Library/2017-11-22-17-21-01.bpo-10049.ttsBqb.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/4464/{{ revealButtonHref }} |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |