Skip to content

ast.parse gives wrong position (col_offset) for some BinOp-s #62574

Description

@aivarannamaa
BPO 18374
Nosy @cfbolz, @benjaminp, @aivarannamaa, @serhiy-storchaka, @ilevkivskyi, @pablogsal, @miss-islington
PRs
  • bpo-18374: fix wrong col_offset of some ast.BinOp instances #14607
  • [3.8] bpo-18374: fix wrong col_offset of some ast.BinOp instances (GH-14607) #14653
  • bpo-18374: fix tests to check the correct thing about line numbers #14659
  • [3.8] bpo-18374: fix tests to check the correct thing about line numbers (GH-14659) #14672
  • Files
  • binop_bug.py
  • 18374-binop-col-offset-with-test.diff
  • binop-offset.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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2019-07-09.19:37:39.904>
    created_at = <Date 2013-07-06.09:35:02.611>
    labels = ['interpreter-core', 'type-bug', '3.8', '3.9']
    title = 'ast.parse gives wrong position (col_offset) for some BinOp-s'
    updated_at = <Date 2019-07-09.19:37:39.896>
    user = 'https://github.com/aivarannamaa'

    bugs.python.org fields:

    activity = <Date 2019-07-09.19:37:39.896>
    actor = 'levkivskyi'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2019-07-09.19:37:39.904>
    closer = 'levkivskyi'
    components = ['Interpreter Core']
    creation = <Date 2013-07-06.09:35:02.611>
    creator = 'Aivar.Annamaa'
    dependencies = []
    files = ['30793', '34945', '48458']
    hgrepos = []
    issue_num = 18374
    keywords = ['patch']
    message_count = 14.0
    messages = ['192394', '216696', '347294', '347313', '347319', '347320', '347324', '347325', '347326', '347370', '347509', '347510', '347554', '347560']
    nosy_count = 8.0
    nosy_names = ['Carl.Friedrich.Bolz', 'benjamin.peterson', 'Aivar.Annamaa', 'serhiy.storchaka', 'sam.kimbrel', 'levkivskyi', 'pablogsal', 'miss-islington']
    pr_nums = ['14607', '14653', '14659', '14672']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue18374'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Labels

    3.8 (EOL)end of life3.9 (EOL)end of lifeinterpreter-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