input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None · Issue #52503 · python/cpython · GitHub
Skip to content

input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None #52503

Description

@dangyogi
mannequin
BPO 8256
Nosy @amauryfa, @abalkin, @pitrou, @vstinner, @bitdancer, @florentx, @embray, @vadmium, @serhiy-storchaka
PRs
  • bpo-8256: Fixed possible failing or crashing input() #517
  • bpo-8256: Fixed possible failing or crashing input() (#517) #640
  • [3.6] bpo-8256: Fixed possible failing or crashing input() #641
  • [3.5] bpo-8256: Fixed possible failing or crashing input() #642
  • [Do Not Merge] Sample of CPython life with blurb. #703
  • Dependencies
  • bpo-24402: input() uses sys.stdout instead of sys.stdout for prompt
  • Files
  • bug.py: small bug demo program
  • 8256_3.patch
  • input_stdout_encoding.patch
  • input_stdout_none_encoding.patch
  • p1345978092.diff
  • input_fallback.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 = None
    closed_at = <Date 2017-03-17.21:11:46.505>
    created_at = <Date 2010-03-28.20:15:14.678>
    labels = ['3.7', 'type-bug', 'library', 'expert-IO']
    title = "input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None"
    updated_at = <Date 2017-03-24.22:23:04.140>
    user = 'https://bugs.python.org/dangyogi'

    bugs.python.org fields:

    activity = <Date 2017-03-24.22:23:04.140>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-03-17.21:11:46.505>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)', 'IO']
    creation = <Date 2010-03-28.20:15:14.678>
    creator = 'dangyogi'
    dependencies = ['24402']
    files = ['16681', '16700', '17324', '23608', '27006', '40704']
    hgrepos = []
    issue_num = 8256
    keywords = ['patch']
    message_count = 32.0
    messages = ['101874', '101876', '101879', '101880', '101886', '101888', '101900', '101904', '101956', '105422', '105435', '105436', '105439', '105555', '105616', '105676', '105699', '105700', '146590', '146969', '146973', '168873', '168880', '169166', '252421', '252422', '252437', '255217', '255220', '290194', '290195', '290200']
    nosy_count = 12.0
    nosy_names = ['amaury.forgeotdarc', 'belopolsky', 'pitrou', 'vstinner', 'dangyogi', 'r.david.murray', 'gruszczy', 'flox', 'erik.bray', 'aliles', 'martin.panter', 'serhiy.storchaka']
    pr_nums = ['517', '640', '641', '642', '703']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue8256'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    Activity

    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

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytopic-IOtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions