Skip to content

null source chars handled oddly by tokenize #41466

Closed

Description

@rcharney
mannequin
BPO 1105770
Nosy @gvanrossum, @devdanzin
Files
  • invalidChars.py
  • 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 2021-06-17.15:19:21.992>
    created_at = <Date 2005-01-20.07:35:04.000>
    labels = ['interpreter-core', 'type-bug']
    title = 'null source chars handled oddly by tokenize'
    updated_at = <Date 2021-06-17.15:19:21.990>
    user = 'https://bugs.python.org/rcharney'

    bugs.python.org fields:

    activity = <Date 2021-06-17.15:19:21.990>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-06-17.15:19:21.992>
    closer = 'gvanrossum'
    components = ['Interpreter Core']
    creation = <Date 2005-01-20.07:35:04.000>
    creator = 'rcharney'
    dependencies = []
    files = ['1562']
    hgrepos = []
    issue_num = 1105770
    keywords = []
    message_count = 4.0
    messages = ['24004', '24005', '82112', '396005']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'rcharney', 'ajaksu2', 'Alexandre.Zani']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1105770'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

    Activity

    1. rcharney commented on Jan 20, 2005

      rcharneymannequin
      MannequinAuthor

      When null characters appear in the source, outside
      literals, tokenize seems to either: skip the null
      character and the next two following characters; or
      ignore the remainder of the line, including the newline
      character.

      (To see the invalid characters, use vim, or an editor
      that displays control characters when needed.)

    2. birkenfeld commented on Jan 10, 2006

      @birkenfeld
      Member

      Logged In: YES
      user_id=1188172

      Confirmed with current SVN heads.

    3. devdanzin commented on Feb 14, 2009

      devdanzinmannequin
      Mannequin

      Confirmed on trunk at rev69546.

    4. changed the title [-]null source chars handled oddly[/-] [+]null source chars handled oddly by tokenize[/+] on Aug 19, 2010
    5. gvanrossum commented on Jun 17, 2021

      @gvanrossum
      Member

      Closing in favor of bpo-20115.

    6. transferred this issue fromon Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    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