Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Outdated docstrings in Lib/inspect.py #122058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Eclips4 opened this issue Jul 20, 2024 · 1 comment
Closed

Outdated docstrings in Lib/inspect.py #122058

Eclips4 opened this issue Jul 20, 2024 · 1 comment
Labels
3.12 only security fixes 3.13 bugs and security fixes 3.14 bugs and security fixes docs Documentation in the Doc dir

Comments

@Eclips4
Copy link
Member

Eclips4 commented Jul 20, 2024

inspect.isfunction docstring is missing a:

  • __dict__
  • __closure__
  • __qualname__
  • __module__
  • __type_params__

inspect.isgenerator:

  • gi_yieldfrom
  • gi_suspended(?) an undocumented attribute, I guess we should not expose it there
  • next - an old attribute which has been removed, so should be removed from there as well

inspect.isframe:

  • clear
  • f_trace_lines
  • f_trace_opcodes

inspect.iscode:

  • co_positions
  • co_lines
  • co_qualname
  • replace

I have a PR ready.

Linked PRs

@Eclips4 Eclips4 added docs Documentation in the Doc dir 3.12 only security fixes 3.13 bugs and security fixes 3.14 bugs and security fixes labels Jul 20, 2024
vstinner added a commit that referenced this issue Aug 6, 2024
…rator`, `isframe`, `iscode`. (#122059)

Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
@vstinner
Copy link
Member

vstinner commented Aug 6, 2024

Fixed by commit 8ce70d6.

@vstinner vstinner closed this as completed Aug 6, 2024
brandtbucher pushed a commit to brandtbucher/cpython that referenced this issue Aug 7, 2024
…isgenerator`, `isframe`, `iscode`. (python#122059)

Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
blhsing pushed a commit to blhsing/cpython that referenced this issue Aug 22, 2024
…isgenerator`, `isframe`, `iscode`. (python#122059)

Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 only security fixes 3.13 bugs and security fixes 3.14 bugs and security fixes docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants