Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frame repr should be more helpful #76649

Closed
pitrou opened this issue Dec 31, 2017 · 3 comments
Closed

Frame repr should be more helpful #76649

pitrou opened this issue Dec 31, 2017 · 3 comments
Labels
3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@pitrou
Copy link
Member

pitrou commented Dec 31, 2017

BPO 32468
Nosy @pitrou, @benjaminp, @serhiy-storchaka, @1st1
PRs
  • bpo-32468: Better frame repr() #5067
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-12-31.21:35:56.762>
    created_at = <Date 2017-12-31.19:14:55.159>
    labels = ['interpreter-core', 'type-feature', '3.7']
    title = 'Frame repr should be more helpful'
    updated_at = <Date 2017-12-31.21:35:56.761>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2017-12-31.21:35:56.761>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-31.21:35:56.762>
    closer = 'pitrou'
    components = ['Interpreter Core']
    creation = <Date 2017-12-31.19:14:55.159>
    creator = 'pitrou'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32468
    keywords = ['patch']
    message_count = 3.0
    messages = ['309298', '309301', '309311']
    nosy_count = 4.0
    nosy_names = ['pitrou', 'benjamin.peterson', 'serhiy.storchaka', 'yselivanov']
    pr_nums = ['5067']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32468'
    versions = ['Python 3.7']

    @pitrou
    Copy link
    Member Author

    pitrou commented Dec 31, 2017

    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>

    @pitrou pitrou added 3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Dec 31, 2017
    @1st1
    Copy link
    Member

    1st1 commented Dec 31, 2017

    +1

    @pitrou
    Copy link
    Member Author

    pitrou commented Dec 31, 2017

    New changeset 1470914 by Antoine Pitrou in branch 'master':
    bpo-32468: Better frame repr() (bpo-5067)
    1470914

    @pitrou pitrou closed this as completed Dec 31, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants