From 4c0b7f81cba2588130661ce3a3921713a9c9a07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Wirtel?= Date: Thu, 25 Oct 2018 17:43:12 +0200 Subject: [PATCH] bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted' --- Doc/library/inspect.rst | 3 --- .../Documentation/2018-10-25-17-45-09.bpo-35038.2eVOYS.rst | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 Misc/NEWS.d/next/Documentation/2018-10-25-17-45-09.bpo-35038.2eVOYS.rst diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 523a5f34179b81e..50cd00367a1b70b 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -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 index 000000000000000..3558cf47d5d5f95 --- /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