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 willingc
Recipients amyluo, docs@python, willingc
Date 2015-01-03.12:18:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1420287483.43.0.0264400480741.issue23116@psf.upfronthosting.co.za>
In-reply-to
Content
@amylou Thank you for submitting this documentation suggestion about the Python Tutorial.

This tutorial section, 4.7.1 Default Argument Values, tries to show that a function can have multiple input arguments which may be given default values.

While the suggestion to use lower() does offer more robust input handling, it also adds some complexity to the example by introducing another function to a possibly new user.

I do believe that the 'ask_ok' function could be improved by renaming the 'complaint' argument to something more positive, perhaps 'reminder'. I would also recommend replacing the error message 'uncooperative user' to something with a softer tone, perhaps 'invalid user response'.

@amyluo If you are interested in working on documentation, section 6 of the Developer Guide is a handy resource (https://docs.python.org/devguide/docquality.html).
History
Date User Action Args
2015-01-03 12:18:03willingcsetrecipients: + willingc, docs@python, amyluo
2015-01-03 12:18:03willingcsetmessageid: <1420287483.43.0.0264400480741.issue23116@psf.upfronthosting.co.za>
2015-01-03 12:18:03willingclinkissue23116 messages
2015-01-03 12:18:02willingccreate