Skip to content

compile() passes rest of file as SyntaxError().text when file unreadable #84799

@gvanrossum

Description

@gvanrossum
BPO 40619
Nosy @gvanrossum, @lysnikolaou, @pablogsal
PRs
  • bpo-40619: Correctly handle error lines in programs without file mode #20090
  • 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-05-14.20:12:11.638>
    created_at = <Date 2020-05-14.03:57:30.165>
    labels = ['type-bug', '3.9']
    title = 'compile() passes rest of file as SyntaxError().text when file unreadable'
    updated_at = <Date 2020-05-14.20:12:11.637>
    user = 'https://github.com/gvanrossum'

    bugs.python.org fields:

    activity = <Date 2020-05-14.20:12:11.637>
    actor = 'pablogsal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-14.20:12:11.638>
    closer = 'pablogsal'
    components = []
    creation = <Date 2020-05-14.03:57:30.165>
    creator = 'gvanrossum'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40619
    keywords = ['patch', '3.4regression']
    message_count = 2.0
    messages = ['368815', '368865']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'lys.nikolaou', 'pablogsal']
    pr_nums = ['20090']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue40619'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifetype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions