This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients kishoreaadada, rhettinger
Date 2018-07-15.06:40:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531636857.87.0.56676864532.issue34119@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-07-15 06:40:57rhettingersetrecipients: + rhettinger, kishoreaadada
2018-07-15 06:40:57rhettingersetmessageid: <1531636857.87.0.56676864532.issue34119@psf.upfronthosting.co.za>
2018-07-15 06:40:57rhettingerlinkissue34119 messages
2018-07-15 06:40:57rhettingercreate