Skip to content

lib2to3 generates invalid code with filter and ternary operator #83052

Description

@ZoranSimic
BPO 38871
Nosy @vstinner, @benjaminp, @corona10, @miss-islington
PRs
  • bpo-38871: Fix lib2to3 to be able to use in edge cases of filter #17780
  • [3.8] bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780) #17899
  • [3.7] bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780) #17900
  • 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-01-07.17:32:59.853>
    created_at = <Date 2019-11-20.23:12:36.660>
    labels = ['3.7', '3.8', 'type-bug', 'expert-2to3', '3.9']
    title = 'lib2to3 generates invalid code with filter and ternary operator'
    updated_at = <Date 2020-01-07.17:52:11.436>
    user = 'https://bugs.python.org/ZoranSimic'

    bugs.python.org fields:

    activity = <Date 2020-01-07.17:52:11.436>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-01-07.17:32:59.853>
    closer = 'vstinner'
    components = ['2to3 (2.x to 3.x conversion tool)']
    creation = <Date 2019-11-20.23:12:36.660>
    creator = 'Zoran Simic'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38871
    keywords = ['patch']
    message_count = 7.0
    messages = ['357112', '357133', '357384', '359525', '359526', '359529', '359530']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'benjamin.peterson', 'corona10', 'miss-islington', 'Zoran Simic']
    pr_nums = ['17780', '17899', '17900']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38871'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions