Title: gh-94912: Adjusted check for non-standard coroutine function marker. by carltongibson · Pull Request #100935 · python/cpython · GitHub
Open Graph Title: gh-94912: Adjusted check for non-standard coroutine function marker. by carltongibson · Pull Request #100935 · python/cpython
X Title: gh-94912: Adjusted check for non-standard coroutine function marker. by carltongibson · Pull Request #100935 · python/cpython
Description: The initial implementation did not correctly identify explicitly marked class instances. Follow up to 532aa4e from #99247 (Bug in Python 3.12.0a4) Integrating Python 3.12.0a4 with the Django test suite we see that the _has_coroutine_mark() is not allowing the key case of a class being marked as an asynchronous callable. (This is my fault: in the discussion with @gvanrossum on #99247 over whether we'd cover the marked and async def __call__ cases automatically, I forgot to add the explicit test for the marked instances.) I note the isfunction(f) or _signature_is_functionlike(f) restriction is untested, and not, I think, necessary. (If folks applied markcoroutinefunction, I think we have to assume that they know what they're up to.) Issue: gh-94912
Open Graph Description: The initial implementation did not correctly identify explicitly marked class instances. Follow up to 532aa4e from #99247 (Bug in Python 3.12.0a4) Integrating Python 3.12.0a4 with the Django test s...
X Description: The initial implementation did not correctly identify explicitly marked class instances. Follow up to 532aa4e from #99247 (Bug in Python 3.12.0a4) Integrating Python 3.12.0a4 with the Django test s...
Opengraph URL: https://github.com/python/cpython/pull/100935
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:aff5f56f-7495-0cdc-4a13-4cb7374ce255 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AA56:124340:F1A70:1495C1:69693DEB |
| html-safe-nonce | ab403a3c29f272b238df9ce2cd0bbc2a088494cd222549a6a853d165e8285020 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTU2OjEyNDM0MDpGMUE3MDoxNDk1QzE6Njk2OTNERUIiLCJ2aXNpdG9yX2lkIjoiOTA3NjI4NDcwMzExMzgyMTY3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 26e0d7108f2c21eb31571a6307b568db7986f07a9f6b86bb40b8114f586bbf20 |
| hovercard-subject-tag | pull_request:1193571253 |
| 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/100935/files |
| twitter:image | https://avatars.githubusercontent.com/u/64686?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/64686?s=400&v=4 |
| og:image:alt | The initial implementation did not correctly identify explicitly marked class instances. Follow up to 532aa4e from #99247 (Bug in Python 3.12.0a4) Integrating Python 3.12.0a4 with the Django test s... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width