File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1069,9 +1069,8 @@ Internal types
10691069 :attr: `f_code ` is the code object being executed in this frame; :attr: `f_locals `
10701070 is the dictionary used to look up local variables; :attr: `f_globals ` is used for
10711071 global variables; :attr: `f_builtins ` is used for built-in (intrinsic) names;
1072- :attr: `f_lasti ` gives the precise instruction (it represents a wordcode index, which
1073- means that to get an index into the bytecode string of the code object it needs to be
1074- multiplied by 2).
1072+ :attr: `f_lasti ` gives the precise instruction (this is an index into the
1073+ bytecode string of the code object).
10751074
10761075 Accessing ``f_code `` raises an :ref: `auditing event <auditing >`
10771076 ``object.__getattr__ `` with arguments ``obj `` and ``"f_code" ``.
Original file line number Diff line number Diff line change @@ -1952,7 +1952,8 @@ Changes in the C API
19521952 offset instead of a simple offset into the bytecode string. This means that this
19531953 number needs to be multiplied by 2 to be used with APIs that expect a byte offset
19541954 instead (like :c:func:`PyCode_Addr2Line` for example). Notice as well that the
1955- `` f_lasti`` member of `` FrameObject`` objects is not considered stable.
1955+ `` f_lasti`` member of `` FrameObject`` objects is not considered stable: please
1956+ use :c:func:`PyFrame_GetLineNumber` instead.
19561957
19571958CPython bytecode changes
19581959========================
You can’t perform that action at this time.
0 commit comments