Skip to content
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

gh-122058: Lib/inspect: Update docstrings for isfunction, isgenerator, isframe, iscode. #122059

Merged
merged 11 commits into from
Aug 6, 2024
Prev Previous commit
Next Next commit
Update Lib/inspect.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
  • Loading branch information
Eclips4 and picnixz committed Jul 27, 2024
commit 506da65c840f46aa41be70cab751418a359a2359
2 changes: 1 addition & 1 deletion Lib/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def iscode(object):

co_lines returns an iterator that yields successive bytecode ranges
co_positions returns an iterator of source code positions for each bytecode instruction
replace return a copy of the code object with a new values"""
replace returns a copy of the code object with a new values"""
return isinstance(object, types.CodeType)

def isbuiltin(object):
Expand Down
Loading