Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
While "shadowing a builtin" was irritating in your case, it is an unavoidable part of how Python works and is in some cases considered a feature. FWIW, there is a workaround. You can reference the real input() function directly in the __builtins__ namespace: >>> input = 'x' >>> __builtins__.input('Enter your name: ') Enter your name: Becky 'Becky' >>> input 'x' Also, consider using tools like pylint and flake8 which give warnings in cases like this. ---------- nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34119> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com