| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:bb1e2e5e-f611-6147-0c02-16aa9f6901f9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C48C:3A5CC1:1418F4:1BC558:6996BC35 |
| html-safe-nonce | 47b3cbbd2207157c5fbdf7f198b8cd1e0374c5da1d5439c17e6ce6f8f873a796 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDhDOjNBNUNDMToxNDE4RjQ6MUJDNTU4OjY5OTZCQzM1IiwidmlzaXRvcl9pZCI6IjUzMjMyNjMwNTkyMDAyMjg0MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9e432cdb098107afe260143a1cffdf59d368964d026120fbab57700d174d33ec |
| hovercard-subject-tag | pull_request:3088252660 |
| 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/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| twitter:image | https://avatars.githubusercontent.com/u/32703550?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/32703550?s=400&v=4 |
| og:image:alt | Fixes gh-142418.
This PR updates inspect.iscoroutinefunction() so that coroutine markers
applied via inspect.markcoroutinefunction() are correctly detected on
wrapped callables, including functools... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5513290f8d09a9ed78de519ab8316ed23b2b0ddd5e91d2420df56691d00827e8 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e258e32a8c50a12656030b21f3279030a774ec82 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142503%2Fcommits%2F99611791e4a7b06db344fef20405c12c82211ed5 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| 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 |
| 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%2F142503%2Fcommits%2F99611791e4a7b06db344fef20405c12c82211ed5 |
|
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| Reload | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| Reload | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.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.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
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
| 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 |
| Joshua-Ward1 | https://github.com/Joshua-Ward1 |
| python:main | https://github.com/python/cpython/tree/main |
| Joshua-Ward1:fix-142418-iscoroutinefunction-partial | https://github.com/Joshua-Ward1/cpython/tree/fix-142418-iscoroutinefunction-partial |
|
Conversation
19
| https://github.com/python/cpython/pull/142503 |
|
Commits
9
| https://github.com/python/cpython/pull/142503/commits |
|
Checks
46
| https://github.com/python/cpython/pull/142503/checks |
|
Files changed
4
| https://github.com/python/cpython/pull/142503/files |
|
gh-142418: Fix inspect.iscoroutinefunction for marked functools.partial and partialmethod objects
| https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#top |
|
Show all changes
9 commits
| https://github.com/python/cpython/pull/142503/files |
|
a51db30
Doc: clarify -i interaction with PYTHONSTARTUP
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/a51db306de4a95967275d105d2acfca1d66e36d5 |
|
1c4e6b9
gh-142418: Fix inspect.iscoroutinefunction for marked functools.parti…
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/1c4e6b9a6070443867759f57b955bfc086457fb1 |
|
245a701
Fix NEWS entry formatting for gh-142418
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/245a701948b878597f0bf165bf57789a54395813 |
|
6084378
Rename NEWS entry to follow format
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/608437893025169df2bd62c2efa9ef4d5fa5b235 |
|
6117107
Fixed Filename
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/61171074410180ce1d0563debc17393b062391da |
|
dba7cb9
gh-142418: Remove unnecessary cycle detection from _has_coroutine_mark
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/dba7cb905ecc28a214294d7921315f3e358ee0eb |
|
9961179
gh-142418: Simplify _has_coroutine_mark by removing unnecessary cycle…
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
|
1f05728
gh-142418: Restore __partialmethod__ handling in _has_coroutine_mark
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/1f0572836d1167c28e29ad0833c398f7afed6775 |
|
5d5c324
Reorder coroutine marker check after method unwrapping
Joshua-Ward1 Dec 10, 2025
| https://github.com/python/cpython/pull/142503/commits/5d5c3240aa9dd02365d1855dcf3e08dd088e5663 |
|
Clear filters
| https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
|
Prev
| https://github.com/python/cpython/pull/142503/commits/dba7cb905ecc28a214294d7921315f3e358ee0eb |
|
Next
| https://github.com/python/cpython/pull/142503/commits/1f0572836d1167c28e29ad0833c398f7afed6775 |
| gh-142418 | https://github.com/python/cpython/issues/142418 |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
|
| https://github.com/Joshua-Ward1 |
| Joshua-Ward1 | https://github.com/python/cpython/commits?author=Joshua-Ward1 |
| Lib/inspect.py | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#diff-b89cd06e4637abacb73f2500301ff979a67ad7ecbfa7cf151c7243715898d7ea |
|
View file
| https://github.com/python/cpython/blob/99611791e4a7b06db344fef20405c12c82211ed5/Lib/inspect.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/142503/commits/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#diff-b89cd06e4637abacb73f2500301ff979a67ad7ecbfa7cf151c7243715898d7ea |
| picnixz | https://github.com/picnixz |
| Dec 14, 2025 | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#r2617376361 |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| x42005e1f | https://github.com/x42005e1f |
| Dec 10, 2025 | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#r2605698696 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| picnixz | https://github.com/picnixz |
| Dec 14, 2025 | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#r2617380078 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| x42005e1f | https://github.com/x42005e1f |
| Dec 14, 2025 | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#r2617391383 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #142505 | https://github.com/python/cpython/pull/142505 |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| x42005e1f | https://github.com/x42005e1f |
| Dec 10, 2025 | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#r2605952145 |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
|
| https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5#diff-b89cd06e4637abacb73f2500301ff979a67ad7ecbfa7cf151c7243715898d7ea |
| Please reload this page | https://github.com/python/cpython/pull/142503/commits/99611791e4a7b06db344fef20405c12c82211ed5 |
|
| 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 |