Skip to content

Function calls taking a generator as star argument can mask TypeErrors in the generator #49056

@hagen

Description

@hagen
mannequin
BPO 4806
Nosy @birkenfeld, @terryjreedy, @amauryfa, @jaraco, @ncoghlan, @pitrou, @benjaminp, @bitdancer, @durban, @pfctdayelise, @vadmium, @1st1
Files
  • message_and_docs.patch: Changes error message and docs
  • TypeError2.patch: Correct masking of TypeError in iterables
  • combined.patch: combined and updated patch
  • issue4806.patch
  • issue4806-star-TypeError.v2.patch
  • check-generator-py2.patch: Only handle generator in 2.7
  • 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 2016-04-17.04:00:20.414>
    created_at = <Date 2009-01-02.12:46:02.777>
    labels = ['interpreter-core', 'type-bug']
    title = 'Function calls taking a generator as star argument can mask TypeErrors in the generator'
    updated_at = <Date 2018-04-16.14:11:55.915>
    user = 'https://bugs.python.org/hagen'

    bugs.python.org fields:

    activity = <Date 2018-04-16.14:11:55.915>
    actor = 'jaraco'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-04-17.04:00:20.414>
    closer = 'martin.panter'
    components = ['Interpreter Core']
    creation = <Date 2009-01-02.12:46:02.777>
    creator = 'hagen'
    dependencies = []
    files = ['14167', '14169', '18404', '21028', '38219', '41756']
    hgrepos = []
    issue_num = 4806
    keywords = ['patch', 'needs review']
    message_count = 30.0
    messages = ['78788', '78800', '78957', '88770', '88800', '88803', '88807', '104861', '112896', '112960', '112998', '113022', '130168', '130232', '134821', '151110', '152580', '152583', '152584', '214091', '236475', '258688', '259239', '259240', '259251', '260300', '260302', '260304', '263595', '315358']
    nosy_count = 22.0
    nosy_names = ['georg.brandl', 'terry.reedy', 'amaury.forgeotdarc', 'jaraco', 'ncoghlan', 'pitrou', 'ron_adam', 'dangyogi', 'benjamin.peterson', 'gpolo', 'hagen', 'kcarnold', 'r.david.murray', 'daniel.urban', 'python-dev', 'pfctdayelise', 'martin.panter', 'brandjon', 'yselivanov', 'DragonFireCK', 'Samuel BOV\xc3\x89E', 'Michel Desmoulin']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4806'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions