[Python-checkins] bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)

Miss Islington (bot) webhook-mailer at python.org
Thu Oct 25 17:22:04 EDT 2018


https://github.com/python/cpython/commit/3b87151879adb795c3c0372832c87da84ee93974
commit: 3b87151879adb795c3c0372832c87da84ee93974
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-10-25T14:21:59-07:00
summary:

bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)


https://bugs.python.org/issue35038
(cherry picked from commit 1770d1c5121ed6c64d7072875738f97e07eede8a)

Co-authored-by: Stéphane Wirtel <stephane at wirtel.be>

files:
A Misc/NEWS.d/next/Documentation/2018-10-25-17-45-09.bpo-35038.2eVOYS.rst
M Doc/library/inspect.rst

diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 6be28a2b31cb..891dedd9b02d 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -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
index 000000000000..3558cf47d5d5
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2018-10-25-17-45-09.bpo-35038.2eVOYS.rst
@@ -0,0 +1,2 @@
+Fix the documentation about an unexisting `f_restricted` attribute in the
+frame object. Patch by Stéphane Wirtel



More information about the Python-checkins mailing list