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 amyluo
Recipients amyluo
Date 2014-12-26.19:42:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419622934.77.0.489991713093.issue23116@psf.upfronthosting.co.za>
In-reply-to
Content
https://docs.python.org/3/tutorial/controlflow.html#default-argument-values
def ask_ok(prompt, retries=4, complaint='Yes or no, please!'):
    while True:
        ok = input(prompt)

Suggestion: change to "ok = input(prompt).lower()" in order to cover values with capitalized characters such as "Yes" or "NO".
History
Date User Action Args
2014-12-26 19:42:14amyluosetrecipients: + amyluo
2014-12-26 19:42:14amyluosetmessageid: <1419622934.77.0.489991713093.issue23116@psf.upfronthosting.co.za>
2014-12-26 19:42:14amyluolinkissue23116 messages
2014-12-26 19:42:14amyluocreate