Title: 3.13.0b3: undocumented change in `inspect.isroutine()` for `functools.partial` · Issue #122087 · python/cpython · GitHub
Open Graph Title: 3.13.0b3: undocumented change in `inspect.isroutine()` for `functools.partial` · Issue #122087 · python/cpython
X Title: 3.13.0b3: undocumented change in `inspect.isroutine()` for `functools.partial` · Issue #122087 · python/cpython
Description: Documentation While investigating Kludex/starlette#2648, I've noticed that the behavior of inspect.isroutine() changed with regards to functools.partial(). Please consider the following sample: import inspect from functools import partia...
Open Graph Description: Documentation While investigating Kludex/starlette#2648, I've noticed that the behavior of inspect.isroutine() changed with regards to functools.partial(). Please consider the following sample: imp...
X Description: Documentation While investigating Kludex/starlette#2648, I've noticed that the behavior of inspect.isroutine() changed with regards to functools.partial(). Please consider the following sample:...
Opengraph URL: https://github.com/python/cpython/issues/122087
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3.13.0b3: undocumented change in `inspect.isroutine()` for `functools.partial`","articleBody":"# Documentation\r\n\r\nWhile investigating encode/starlette#2648, I've noticed that the behavior of `inspect.isroutine()` changed with regards to `functools.partial()`.\r\n\r\nPlease consider the following sample:\r\n\r\n```python\r\nimport inspect\r\nfrom functools import partial\r\n\r\ndef foo(x):\r\n pass\r\n\r\np = partial(foo, 1)\r\nprint(inspect.isroutine(p))\r\n```\r\n\r\nPrior to 3.13.0b3, it would evaluate to `False`. In newer versions, it evaluates to `True`.\r\n\r\nA bisect points out that it changed as a result of 49e5740135670e04ae6da7e6f52dbe380655e0f1 (i.e. #121086). Neither the commit message, nor the news entry, hints anything about `inspect.isroutine()` behavior.\r\n\r\nCould you please clarify whether the change was intentional? And if it was, could we have it explicitly noted in the documentation?\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-122218\n* gh-122219\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mgorny","@type":"Person","name":"mgorny"},"datePublished":"2024-07-21T13:42:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/122087/cpython/issues/122087"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f9643b39-00be-9898-e91e-97a4d7ed44b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA4E:2F179B:42C60:55941:696AF910 |
| html-safe-nonce | 78542a1c9c49a597386b756ca8c5733c57009275157f510cae59fa99e6e54229 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTRFOjJGMTc5Qjo0MkM2MDo1NTk0MTo2OTZBRjkxMCIsInZpc2l0b3JfaWQiOiIxOTQyMDMzMTc0OTM3NTgyMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 46dadef75acd173cdedab7d359076f5c2afa66430bc58ce589baf1016c48fe72 |
| hovercard-subject-tag | issue:2421411352 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/122087/issue_layout |
| twitter:image | https://opengraph.githubassets.com/839dacc7772f0c125c73f5800a36b937bdaac5871294cdd8b2c931b72db50579/python/cpython/issues/122087 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/839dacc7772f0c125c73f5800a36b937bdaac5871294cdd8b2c931b72db50579/python/cpython/issues/122087 |
| og:image:alt | Documentation While investigating Kludex/starlette#2648, I've noticed that the behavior of inspect.isroutine() changed with regards to functools.partial(). Please consider the following sample: imp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgorny |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width