Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null source chars handled oddly by tokenize #41466

Closed
rcharney mannequin opened this issue Jan 20, 2005 · 4 comments
Closed

null source chars handled oddly by tokenize #41466

rcharney mannequin opened this issue Jan 20, 2005 · 4 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@rcharney
Copy link
Mannequin

rcharney mannequin commented Jan 20, 2005

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']

    @rcharney
    Copy link
    Mannequin Author

    rcharney mannequin commented Jan 20, 2005

    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.)

    @rcharney rcharney mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jan 20, 2005
    @birkenfeld
    Copy link
    Member

    Logged In: YES
    user_id=1188172

    Confirmed with current SVN heads.

    @devdanzin
    Copy link
    Mannequin

    devdanzin mannequin commented Feb 14, 2009

    Confirmed on trunk at rev69546.

    @devdanzin devdanzin mannequin added the type-bug An unexpected behavior, bug, or error label Feb 14, 2009
    @BreamoreBoy BreamoreBoy mannequin changed the title null source chars handled oddly null source chars handled oddly by tokenize Aug 19, 2010
    @gvanrossum
    Copy link
    Member

    Closing in favor of bpo-20115.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants