Issue 32468: Frame repr should be more helpful (original) (raw)

Issue32468

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.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/76649

classification

Title: Frame repr should be more helpful
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.7

process

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/__init__.py", line 123, code getLogger>
msg309301 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2017-12-31 19:41
+1
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) https://github.com/python/cpython/commit/14709144b521b9916f798a43aac9dc44fd44f6ca
History
Date User Action Args
2022-04-11 14:58:56 admin set github: 76649
2017-12-31 21:35:56 pitrou set status: open -> closedresolution: fixedstage: patch review -> resolved
2017-12-31 21:35:24 pitrou set messages: +
2017-12-31 19:41:31 yselivanov set messages: +
2017-12-31 19:35:20 pitrou set nosy: + benjamin.peterson
2017-12-31 19:35:06 pitrou set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest4941>
2017-12-31 19:14:55 pitrou create

Supported by The Python Software Foundation,
Powered by Roundup

Copyright © 1990-2022, Python Software Foundation
Legal Statements