PyDocs
Standard Library
(3.15.2)
Quick Reference
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Python Runtime Services
__future__
__main__
abc
annotationlib
atexit
builtins
contextlib
dataclasses
gc
inspect
site
sitecustomize
sys
sys.monitoring
sysconfig
traceback
usercustomize
warnings
All modules
PyDocs
Standard Library
Quick Ref
Log In
Staging: this is not the live site, pydocs.org.
PyDocs
Standard Library
Quick Ref
Log In
Nav
Top
Examples
0
See Also
0
Notes
0
Python Runtime Services
__future__
__main__
abc
annotationlib
atexit
builtins
contextlib
dataclasses
gc
inspect
site
sitecustomize
sys
monitoring
sysconfig
traceback
usercustomize
warnings
All modules
FrameInfo
inspect
class
(
source
)
FrameInfo(frame, filename, lineno, function, code_context, index, *, positions=None)
Changed in version 3.5: Return a named tuple instead of a tuple.
© Python Software Foundation.
PSF License Version 2
·
Official docs ↗
Changed in 3.5, 3.11
3.5:
Return a named tuple instead of a tuple.
3.11:
FrameInfo is now a class instance (that is backwards compatible with the previous named tuple).
Members of FrameInfo
c
code_context
Alias for field number 4
f
filename
Alias for field number 1
frame
Alias for field number 0
function
Alias for field number 3
i
index
Alias for field number 5
l
lineno
Alias for field number 2
p
positions
A dis.Positions object containing the start line number, end line number, start column offset, and end column offset associated with the instruction being executed by the frame this record correspond…
0 Examples
No examples for inspect/FrameInfo.
Log in
to add an example
See Also
No see-alsos for
inspect/FrameInfo
Log in
to add a see-also
0 Notes
No notes for
FrameInfo
Log in
to add a note