[issue29630] REPL tab-completion triggers code execution

Francisco Demartino report at bugs.python.org
Thu Feb 23 04:36:59 EST 2017


Francisco Demartino added the comment:

I've updated that branch and made a pull request (https://github.com/python/cpython/pull/248)

I think this is a good compromise: inspect.getattr_static can tell if it's a property, and in that case we don't call getattr on it to prevent code execution on the completion. If it isn't a property, the current codepath is preserved.

----------

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


More information about the Python-bugs-list mailing list