Title: __text_signature__ for __get__ methods is wrong · Issue #93021 · python/cpython · GitHub
Open Graph Title: __text_signature__ for __get__ methods is wrong · Issue #93021 · python/cpython
X Title: __text_signature__ for __get__ methods is wrong · Issue #93021 · python/cpython
Description: In [18]: object.__init__.__get__.__text_signature__ Out[18]: '($self, instance, owner, /)' In [19]: object.__init__.__get__(1) Out[19]:
Open Graph Description: In [18]: object.__init__.__get__.__text_signature__ Out[18]: '($self, instance, owner, /)' In [19]: object.__init__.__get__(1) Out[19]:
X Description: In [18]: object.__init__.__get__.__text_signature__ Out[18]: '($self, instance, owner, /)' In [19]: object.__init__.__get__(1) Out[19]: <method-wrapper '__init__' of int object a...
Opengraph URL: https://github.com/python/cpython/issues/93021
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"__text_signature__ for __get__ methods is wrong","articleBody":"```\r\nIn [18]: object.__init__.__get__.__text_signature__\r\nOut[18]: '($self, instance, owner, /)'\r\n\r\nIn [19]: object.__init__.__get__(1)\r\nOut[19]: \u003cmethod-wrapper '__init__' of int object at 0x105e7d0b0\u003e\r\n\r\nIn [20]: object.__init__.__get__(1, 2)\r\nOut[20]: \u003cmethod-wrapper '__init__' of int object at 0x105e7d0b0\u003e\r\n```\r\n\r\nThe signature claims there are two required positional arguments, but in fact the second argument is optional.\r\n\r\n(Tested on 3.11 but I think it's wrong on all recent versions.)","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2022-05-20T15:36:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/93021/cpython/issues/93021"}
| 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:91143e61-bad5-1421-de19-a8e1a4f29b93 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EABA:60C6C:934FD7:C4E607:69697D1D |
| html-safe-nonce | 6ea2e7bb87dcb0da38783471025950d90a119903a5f0ac5feb5f7e08c3c026de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUJBOjYwQzZDOjkzNEZENzpDNEU2MDc6Njk2OTdEMUQiLCJ2aXNpdG9yX2lkIjoiMjcwMjg4NDM2MDY0ODQ5MDI2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | be405366bcaaa1c2ea855abedc4f65da6ab19105cd4d54397a21d81b7fbf9b5e |
| hovercard-subject-tag | issue:1243322936 |
| 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/93021/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50692216d6cb573c6282ba9b0d23df85e1b1f74320344c3ce82ece0986dc4bc0/python/cpython/issues/93021 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50692216d6cb573c6282ba9b0d23df85e1b1f74320344c3ce82ece0986dc4bc0/python/cpython/issues/93021 |
| og:image:alt | In [18]: object.__init__.__get__.__text_signature__ Out[18]: '($self, instance, owner, /)' In [19]: object.__init__.__get__(1) Out[19]: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JelleZijlstra |
| hostname | github.com |
| expected-hostname | github.com |
| None | f33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77 |
| 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 | 48f380098b30acbb700b04f1724481ca10d574fc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width