This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Frame repr should be more helpful
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, pitrou, serhiy.storchaka, yselivanov
Priority: normal Keywords: patch

Created on 2017-12-31 19:14 by pitrou, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 5067 merged pitrou, 2017-12-31 19:35
Messages (3)
msg309298 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2017-12-31 19:14
Currently a frame's repr looks like this:

>>> f
<frame object at 0x7f7b8a8ecb08>

It would be more helpful if it displayed something like:

>>> f
<frame object at 0x7f7b8a8ecb08, file "/home/antoine/cpython/default/Lib/logging/", line 123, code getLogger>
msg309301 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2017-12-31 19:41
msg309311 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2017-12-31 21:35
New changeset 14709144b521b9916f798a43aac9dc44fd44f6ca by Antoine Pitrou in branch 'master':
bpo-32468: Better frame repr() (#5067)
Date User Action Args
2022-04-11 14:58:56adminsetgithub: 76649
2017-12-31 21:35:56pitrousetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-12-31 21:35:24pitrousetmessages: + msg309311
2017-12-31 19:41:31yselivanovsetmessages: + msg309301
2017-12-31 19:35:20pitrousetnosy: + benjamin.peterson
2017-12-31 19:35:06pitrousetkeywords: + patch
stage: patch review
pull_requests: + pull_request4941
2017-12-31 19:14:55pitroucreate