]> granicus.if.org Git - python/commitdiff
bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)
authorStéphane Wirtel <stephane@wirtel.be>
Thu, 25 Oct 2018 21:13:45 +0000 (23:13 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Oct 2018 21:13:45 +0000 (14:13 -0700)
https://bugs.python.org/issue35038

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 523a5f34179b81eea4bb63e7dd712c719d8ea87f..50cd00367a1b70b35f3eeed8d0e34d99130a3fa4 100644 (file)
@@ -132,9 +132,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