Skip to content

sys.getsizeof and sys.set_asyncgen_hooks are not converted to AC #103131

@sobolevn

Description

@sobolevn

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)'
>>> sys.getsizeof.__text_signature__

I 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 #11328 (comment)

I think that this should be fixed. I will send a PR with this function converted, it take a very minimal diff to do that.

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions