Skip to content

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

Closed

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

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    docsDocumentation in the Doc dir
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    pendingThe issue will be closed if no feedback is provided
    on Jan 21, 2024
  2. self-assigned this
    on Jan 21, 2024
  3. removed
    pendingThe issue will be closed if no feedback is provided
    on Jan 21, 2024
  4. added a commit that references this issue on Jan 21, 2024
  5. added a commit that references this issue on Jan 21, 2024
  6. added 2 commits that reference this issue on Jan 21, 2024
  7. added 2 commits that reference this issue on Jan 21, 2024
  8. added a commit that references this issue on Jan 22, 2024
  9. added a commit that references this issue on Feb 11, 2024
  10. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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