]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Oct 2018 21:21:59 +0000 (14:21 -0700)
committerGitHub <noreply@github.com>
Thu, 25 Oct 2018 21:21:59 +0000 (14:21 -0700)
https://bugs.python.org/issue35038
(cherry picked from commit 1770d1c5121ed6c64d7072875738f97e07eede8a)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
Doc/library/inspect.rst
Misc/NEWS.d/next/Documentation/2018-10-25-17-45-09.bpo-35038.2eVOYS.rst [new file with mode: 0644]

index 6be28a2b31cb66ac9ac53529a47b1e7954d318cd..891dedd9b02d2319e6ec77d56238eb627712a4ab 100644 (file)
@@ -129,9 +129,6 @@ attributes:
 |           | f_locals          | local namespace seen by   |
 |           |                   | this frame                |
 +-----------+-------------------+---------------------------+
-|           | f_restricted      | 0 or 1 if frame is in     |
-|           |                   | restricted execution mode |
-+-----------+-------------------+---------------------------+
 |           | f_trace           | tracing function for this |
 |           |                   | frame, or ``None``        |
 +-----------+-------------------+---------------------------+
diff --git a/Misc/NEWS.d/next/Documentation/2018-10-25-17-45-09.bpo-35038.2eVOYS.rst b/Misc/NEWS.d/next/Documentation/2018-10-25-17-45-09.bpo-35038.2eVOYS.rst
new file mode 100644 (file)
index 0000000..3558cf4
--- /dev/null
@@ -0,0 +1,2 @@
+Fix the documentation about an unexisting `f_restricted` attribute in the
+frame object. Patch by Stéphane Wirtel