Message321681
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. |
|
Date |
User |
Action |
Args |
2018-07-15 06:40:57 | rhettinger | set | recipients:
+ rhettinger, kishoreaadada |
2018-07-15 06:40:57 | rhettinger | set | messageid: <1531636857.87.0.56676864532.issue34119@psf.upfronthosting.co.za> |
2018-07-15 06:40:57 | rhettinger | link | issue34119 messages |
2018-07-15 06:40:57 | rhettinger | create | |
|