mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
bpo-44964: Correct the note about the f_lasti field (GH-28208)
This commit is contained in:
parent
296b710070
commit
ab327f2929
2 changed files with 4 additions and 4 deletions
|
|
@ -1069,9 +1069,8 @@ Internal types
|
|||
:attr:`f_code` is the code object being executed in this frame; :attr:`f_locals`
|
||||
is the dictionary used to look up local variables; :attr:`f_globals` is used for
|
||||
global variables; :attr:`f_builtins` is used for built-in (intrinsic) names;
|
||||
:attr:`f_lasti` gives the precise instruction (it represents a wordcode index, which
|
||||
means that to get an index into the bytecode string of the code object it needs to be
|
||||
multiplied by 2).
|
||||
:attr:`f_lasti` gives the precise instruction (this is an index into the
|
||||
bytecode string of the code object).
|
||||
|
||||
Accessing ``f_code`` raises an :ref:`auditing event <auditing>`
|
||||
``object.__getattr__`` with arguments ``obj`` and ``"f_code"``.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue