[issue40638] input() with malformed input stream triggers assertion failure

Maxwell Bernstein report at bugs.python.org
Fri May 15 18:17:06 EDT 2020


New submission from Maxwell Bernstein <tekk.nolagi at gmail.com>:

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.

----------
components: Interpreter Core, Library (Lib)
messages: 368982
nosy: tekknolagi
priority: normal
severity: normal
status: open
title: input() with malformed input stream triggers assertion failure
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40638>
_______________________________________


More information about the Python-bugs-list mailing list