Skip to content

Add inspect.unwrap(f) to easily unravel "__wrapped__" chains #57475

@ncoghlan

Description

@ncoghlan
BPO 13266
Nosy @rhettinger, @jcea, @ncoghlan, @ezio-melotti, @merwok, @florentx, @meadori, @durban
Dependencies
  • bpo-17482: functools.update_wrapper mishandles wrapped
  • Files
  • inspect_unwrap.patch: inspect.unwrap - 1st patch
  • p13266-2.diff: Updated patch for 3.4 with documentation
  • inspect_unwrap_3.patch
  • issue13266_inspect_unwrap_4.diff: Patch with ability to stop unwrapping early
  • 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 = 'https://github.com/ncoghlan'
    closed_at = <Date 2013-07-28.10:00:30.485>
    created_at = <Date 2011-10-26.06:43:11.307>
    labels = ['type-feature', 'library']
    title = 'Add inspect.unwrap(f) to easily unravel "__wrapped__" chains'
    updated_at = <Date 2013-07-28.10:00:30.484>
    user = 'https://github.com/ncoghlan'

    bugs.python.org fields:

    activity = <Date 2013-07-28.10:00:30.484>
    actor = 'python-dev'
    assignee = 'ncoghlan'
    closed = True
    closed_date = <Date 2013-07-28.10:00:30.485>
    closer = 'python-dev'
    components = ['Library (Lib)']
    creation = <Date 2011-10-26.06:43:11.307>
    creator = 'ncoghlan'
    dependencies = ['17482']
    files = ['25368', '27790', '27876', '30927']
    hgrepos = []
    issue_num = 13266
    keywords = ['patch']
    message_count = 9.0
    messages = ['146420', '146421', '159336', '174179', '174767', '184655', '193095', '193165', '193814']
    nosy_count = 10.0
    nosy_names = ['rhettinger', 'jcea', 'ncoghlan', 'ezio.melotti', 'eric.araujo', 'flox', 'meador.inge', 'daniel.urban', 'python-dev', 'aliles']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue13266'
    versions = ['Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions