Title: `sys.getsizeof` and `sys.set_asyncgen_hooks` are not converted to AC · Issue #103131 · python/cpython · GitHub
Open Graph Title: `sys.getsizeof` and `sys.set_asyncgen_hooks` are not converted to AC · Issue #103131 · python/cpython
X Title: `sys.getsizeof` and `sys.set_asyncgen_hooks` are not converted to AC · Issue #103131 · python/cpython
Description: I found this while working on python/typeshed#9987 I've noticed that most of the functions inside sys do have __text_signature__. While sys.getsizeof doesn't. >>> import sys >>> sys.addaudithook.__text_signature__ '($module, /, hook)' >>...
Open Graph Description: I found this while working on python/typeshed#9987 I've noticed that most of the functions inside sys do have __text_signature__. While sys.getsizeof doesn't. >>> import sys >>> sys.addaudithook.__...
X Description: I found this while working on python/typeshed#9987 I've noticed that most of the functions inside sys do have __text_signature__. While sys.getsizeof doesn't. >>> import sys >&g...
Opengraph URL: https://github.com/python/cpython/issues/103131
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`sys.getsizeof` and `sys.set_asyncgen_hooks` are not converted to AC","articleBody":"I found this while working on https://github.com/python/typeshed/pull/9987 I've noticed that most of the functions inside `sys` do have `__text_signature__`. While `sys.getsizeof` doesn't.\r\n\r\n```python\r\n\u003e\u003e\u003e import sys\r\n\u003e\u003e\u003e sys.addaudithook.__text_signature__\r\n'($module, /, hook)'\r\n\u003e\u003e\u003e sys.getsizeof.__text_signature__\r\n```\r\n\r\nI think this is not a planned feature. This is the artifact of times when `NULL` was not supported as a default value by AC. See original review comment https://github.com/python/cpython/pull/11328#discussion_r244186230\r\n\r\nI think that this should be fixed. I will send a PR with this function converted, it take a very minimal diff to do that.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-103132\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2023-03-30T12:28:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/103131/cpython/issues/103131"}
| 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:af3b5af1-3954-040a-d75d-ddf46c276561 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB26:25C52D:2FDE67:3E1082:696B0543 |
| html-safe-nonce | fecba3de6a45b1c187432b2f666b4fe9765ac898ef9570bbc086f80a8cde6c63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjI2OjI1QzUyRDoyRkRFNjc6M0UxMDgyOjY5NkIwNTQzIiwidmlzaXRvcl9pZCI6IjExOTU0ODI1NzQ5ODk0OTM1NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 022f84ed02512e5bcb9edc82e74a3764feb89dd9bf9b540100cf30c6e4dd6a93 |
| hovercard-subject-tag | issue:1647523182 |
| 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/103131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2680040d0338e1a9321d54b91d953f71375aa22e2c7e5063c5a6bf176f05beff/python/cpython/issues/103131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2680040d0338e1a9321d54b91d953f71375aa22e2c7e5063c5a6bf176f05beff/python/cpython/issues/103131 |
| og:image:alt | I found this while working on python/typeshed#9987 I've noticed that most of the functions inside sys do have __text_signature__. While sys.getsizeof doesn't. >>> import sys >>> sys.addaudithook.__... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width