Skip to content

sys.set_asyncgen_hooks docs are not correct about its signature #114384

@sobolevn

Description

@sobolevn

Bug report

Refs #103132 (comment)

The signature is set_asyncgen_hooks(firstiter=<unrepresentable>, finalizer=<unrepresentable>).
Docs say that it is: set_asyncgen_hooks(firstiter, finalizer)
Docstring say that it is: set_asyncgen_hooks(* [, firstiter] [, finalizer])

It should be: set_asyncgen_hooks([firstiter] [, finalizer]) (I guess)

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions