Skip to content

inspect.isgeneratorfunction fails on hand-created methods #77442

@jdemeyer

Description

@jdemeyer
BPO 33261
Nosy @rhettinger, @terryjreedy, @ncoghlan, @encukou, @jdemeyer
PRs
  • bpo-33261: guard access to __code__ attribute in inspect #6448
  • 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 2019-04-03.14:52:11.710>
    created_at = <Date 2018-04-11.08:59:53.781>
    labels = ['3.7', '3.8', 'type-bug', 'library']
    title = 'inspect.isgeneratorfunction fails on hand-created methods'
    updated_at = <Date 2019-04-03.14:52:11.709>
    user = 'https://github.com/jdemeyer'

    bugs.python.org fields:

    activity = <Date 2019-04-03.14:52:11.709>
    actor = 'petr.viktorin'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-04-03.14:52:11.710>
    closer = 'petr.viktorin'
    components = ['Library (Lib)']
    creation = <Date 2018-04-11.08:59:53.781>
    creator = 'jdemeyer'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33261
    keywords = ['patch']
    message_count = 12.0
    messages = ['315187', '315272', '315284', '315287', '315288', '315302', '315305', '315312', '315438', '327401', '338968', '339335']
    nosy_count = 5.0
    nosy_names = ['rhettinger', 'terry.reedy', 'ncoghlan', 'petr.viktorin', 'jdemeyer']
    pr_nums = ['6448']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue33261'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions