classification
Title: AttributeError: 'frame' object has no attribute 'f_restricted'
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Delgan, docs@python, matrixise, miss-islington, serhiy.storchaka
Priority: normal Keywords: easy, patch

Created on 2018-10-21 15:02 by Delgan, last changed 2018-10-25 22:34 by matrixise. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 10098 merged matrixise, 2018-10-25 15:46
PR 10105 merged miss-islington, 2018-10-25 21:13
PR 10106 merged miss-islington, 2018-10-25 21:14
Messages (7)
msg328217 - (view) Author: Delgan (Delgan) * Date: 2018-10-21 15:02
In the documentation (https://docs.python.org/3/library/inspect.html#types-and-members), the attribute `f_restricted` is listed as a member of `frame` objects. However, while trying to access it or even when calling `help()`, the object does not seem to have such attribute.

Is it a issue with the documentation that has not been updated?

I'm using Python 3.6.3 on Linux.
msg328218 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-10-21 15:12
It is an issue with the documentation.
msg328453 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2018-10-25 15:47
I have proposed a PR.
msg328494 - (view) Author: miss-islington (miss-islington) Date: 2018-10-25 21:13
New changeset 1770d1c5121ed6c64d7072875738f97e07eede8a by Miss Islington (bot) (Stéphane Wirtel) in branch 'master':
bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)
https://github.com/python/cpython/commit/1770d1c5121ed6c64d7072875738f97e07eede8a
msg328495 - (view) Author: miss-islington (miss-islington) Date: 2018-10-25 21:19
New changeset c64c4056c1fce0a18e5810fc6352712612a64010 by Miss Islington (bot) in branch '3.7':
bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)
https://github.com/python/cpython/commit/c64c4056c1fce0a18e5810fc6352712612a64010
msg328496 - (view) Author: miss-islington (miss-islington) Date: 2018-10-25 21:22
New changeset 3b87151879adb795c3c0372832c87da84ee93974 by Miss Islington (bot) in branch '3.6':
bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)
https://github.com/python/cpython/commit/3b87151879adb795c3c0372832c87da84ee93974
msg328503 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2018-10-25 22:34
all the PRs have been merged, we can close this issue.
History
Date User Action Args
2018-10-25 22:34:27matrixisesetstatus: open -> closed
resolution: fixed
messages: + msg328503

stage: patch review -> resolved
2018-10-25 21:22:04miss-islingtonsetmessages: + msg328496
2018-10-25 21:19:35miss-islingtonsetmessages: + msg328495
2018-10-25 21:14:08miss-islingtonsetpull_requests: + pull_request9436
2018-10-25 21:13:59miss-islingtonsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request9435
2018-10-25 21:13:50miss-islingtonsetnosy: + miss-islington
messages: + msg328494
2018-10-25 15:47:05matrixisesetnosy: + matrixise
messages: + msg328453

keywords: - patch
stage: patch review -> needs patch
2018-10-25 15:46:39matrixisesetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request9431
2018-10-21 15:13:32serhiy.storchakasetstage: needs patch
versions: + Python 3.7, Python 3.8
2018-10-21 15:12:55serhiy.storchakasetkeywords: + easy
nosy: + serhiy.storchaka
messages: + msg328218

2018-10-21 15:02:02Delgancreate