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

PyErr_WriteUnraisable should be more verbose in Python 2.7 #75198

Closed
christianaguilerafoundrycom mannequin opened this issue Jul 24, 2017 · 2 comments
Closed

PyErr_WriteUnraisable should be more verbose in Python 2.7 #75198

christianaguilerafoundrycom mannequin opened this issue Jul 24, 2017 · 2 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@christianaguilerafoundrycom
Copy link
Mannequin

BPO 31015
Nosy @serhiy-storchaka
Files
  • PyErr_WriteUnraisable.patch
  • 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 2020-02-26.18:54:50.462>
    created_at = <Date 2017-07-24.14:48:28.089>
    labels = ['type-feature', 'library']
    title = 'PyErr_WriteUnraisable should be more verbose in Python 2.7'
    updated_at = <Date 2020-02-26.18:54:50.461>
    user = 'https://bugs.python.org/christianaguilerafoundrycom'

    bugs.python.org fields:

    activity = <Date 2020-02-26.18:54:50.461>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-02-26.18:54:50.462>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2017-07-24.14:48:28.089>
    creator = 'christian.aguilera@foundry.com'
    dependencies = []
    files = ['47038']
    hgrepos = []
    issue_num = 31015
    keywords = ['patch']
    message_count = 2.0
    messages = ['298979', '362711']
    nosy_count = 2.0
    nosy_names = ['serhiy.storchaka', 'christian.aguilera@foundry.com']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue31015'
    versions = ['Python 2.7']

    @christianaguilerafoundrycom
    Copy link
    Mannequin Author

    When an exception is raised in a __del__ method or a finalizer (i.e. a
    weakref callback), only the exception name is printed out.

    Unfortunately, arbitrarily complex code can be involved which makes
    debugging quite tedious. It would be nice to display the full traceback,
    so that these errors are easier to diagnose.

    The same bug was reported in the past, but it was fixed for Python 3.3 onwards.

    Since it is trivial to get this fix in Python 2.7, I'm adding the patch for it here.

    @christianaguilerafoundrycom christianaguilerafoundrycom mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jul 24, 2017
    @serhiy-storchaka
    Copy link
    Member

    It is too late for 2.7.

    @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
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant