[issue29630] REPL tab-completion triggers code execution

Francisco Demartino report at bugs.python.org
Thu Feb 23 03:14:27 EST 2017


New submission from Francisco Demartino:

On the REPL, when autocompleting with the TAB key, getattr is called, potentially triggering code execution.

This took me by surprise. Until you press RETURN, it should be pretty safe to go around autocompleting with certainty that you won't run any code. But that might be just my opinion.

What do you think?

----------
components: Interpreter Core
files: wat.py
messages: 288420
nosy: Francisco Demartino
priority: normal
severity: normal
status: open
title: REPL tab-completion triggers code execution
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file46662/wat.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29630>
_______________________________________


More information about the Python-bugs-list mailing list