diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2021-09-10 15:53:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 15:53:42 (GMT) |
commit | ab327f2929589407595a3de95727c8ab34ddd4af (patch) | |
tree | 363f48cf699f8f5e3900080c5cde6aa0f0718d01 /Doc/reference/datamodel.rst | |
parent | 296b7100705ef52aece3378b0ae42c33a58526e1 (diff) | |
download | cpython-ab327f2929589407595a3de95727c8ab34ddd4af.zip cpython-ab327f2929589407595a3de95727c8ab34ddd4af.tar.gz cpython-ab327f2929589407595a3de95727c8ab34ddd4af.tar.bz2 |
bpo-44964: Correct the note about the f_lasti field (GH-28208)
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r-- | Doc/reference/datamodel.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index bf3f508..fd78c7e 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -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"``. |