classification
Title: input() with malformed input stream triggers assertion failure
Type: Stage: patch review
Components: Interpreter Core, Library (Lib) Versions: Python 3.9, Python 3.8, Python 3.7, Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: tekknolagi
Priority: normal Keywords: patch

Created on 2020-05-15 22:17 by tekknolagi, last changed 2020-05-15 22:18 by tekknolagi.

Pull Requests
URL Status Linked Edit
PR 20125 open tekknolagi, 2020-05-15 22:18
Messages (1)
msg368982 - (view) Author: Maxwell Bernstein (tekknolagi) * Date: 2020-05-15 22:17
builtin_input_impl does multiple attribute lookups in a row assuming they will succeed, but part of attribute lookup assumes that there is no pending exception.

I propose doing the lookups one by one and checking for an error after each. There is an upcoming patch.
History
Date User Action Args
2020-05-15 22:18:33tekknolagisetkeywords: + patch
stage: patch review
pull_requests: + pull_request19430
2020-05-15 22:17:06tekknolagicreate