Skip to content

Trailing whitespace makes tokenize.generate_tokens pathological #60356

@nedbat

Description

@nedbat
BPO 16152
Nosy @jcea, @vstinner, @nedbat, @ezio-melotti
PRs
  • bpo-33338: [lib2to3] Synchronize token.py and tokenize.py with stdlib #6572
  • Files
  • bug16152_v33.patch: Patch for 3.3
  • bug16152_v27.patch: Patch for 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 = 'https://github.com/ezio-melotti'
    closed_at = <Date 2012-11-03.15:53:58.477>
    created_at = <Date 2012-10-06.21:09:21.224>
    labels = ['type-bug', 'library']
    title = 'Trailing whitespace makes tokenize.generate_tokens pathological'
    updated_at = <Date 2018-04-23.01:26:42.255>
    user = 'https://github.com/nedbat'

    bugs.python.org fields:

    activity = <Date 2018-04-23.01:26:42.255>
    actor = 'nedbat'
    assignee = 'ezio.melotti'
    closed = True
    closed_date = <Date 2012-11-03.15:53:58.477>
    closer = 'ezio.melotti'
    components = ['Library (Lib)']
    creation = <Date 2012-10-06.21:09:21.224>
    creator = 'nedbat'
    dependencies = []
    files = ['27466', '27467']
    hgrepos = []
    issue_num = 16152
    keywords = ['patch']
    message_count = 8.0
    messages = ['172244', '172246', '172276', '172546', '172548', '174640', '174641', '315641']
    nosy_count = 5.0
    nosy_names = ['jcea', 'vstinner', 'nedbat', 'ezio.melotti', 'python-dev']
    pr_nums = ['6572']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue16152'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard 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