Title: bpo-38415 @asynccontextmanager as decorators like @contextmanager by fried · Pull Request #16667 · python/cpython · GitHub
Open Graph Title: bpo-38415 @asynccontextmanager as decorators like @contextmanager by fried · Pull Request #16667 · python/cpython
X Title: bpo-38415 @asynccontextmanager as decorators like @contextmanager by fried · Pull Request #16667 · python/cpython
Description: I assumed at that an asynccontextmanager would some time be available in the stdlib when we first got async generators. Before it had been released I cooked up an internal version at facebook whiched mapped all the features of @contextmanager but as an async variant. This one feature seems to be missing from the stdlib. I would like to stop using my version and just use the stdlib version, can we get this feature parity with contextmanager? @asynccontextmanager async def our_context(...): ... yield ... @our_context(...) async def some_function(...): # we are inside the context of our_context now ... @our_context(...) async def some_other_function(...): ... https://bugs.python.org/issue38415
Open Graph Description: I assumed at that an asynccontextmanager would some time be available in the stdlib when we first got async generators. Before it had been released I cooked up an internal version at facebook whic...
X Description: I assumed at that an asynccontextmanager would some time be available in the stdlib when we first got async generators. Before it had been released I cooked up an internal version at facebook whic...
Opengraph URL: https://github.com/python/cpython/pull/16667
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:87521193-e3ea-6771-224e-e22a833e3c65 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9FD4:2B1AB1:1E60B86:27DBAF8:696B4380 |
| html-safe-nonce | 84547cd2983ef5a6dcfd1f2e350727f846b76eee39f58caa3cebc06903db17a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkQ0OjJCMUFCMToxRTYwQjg2OjI3REJBRjg6Njk2QjQzODAiLCJ2aXNpdG9yX2lkIjoiNDA1NzY0NjE4MjU4ODY5NTQyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 60bff0143ea24c3336b537d98410b611f1d68d4d5c6b67120a51e3eb6bf73639 |
| hovercard-subject-tag | pull_request:325959108 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/16667/files |
| twitter:image | https://avatars.githubusercontent.com/u/200457?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/200457?s=400&v=4 |
| og:image:alt | I assumed at that an asynccontextmanager would some time be available in the stdlib when we first got async generators. Before it had been released I cooked up an internal version at facebook whic... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width