[Tutor] Input handling?

Scott Yamamoto scott.yamamoto at yahoo.com
Tue Sep 18 05:11:06 CEST 2012


I've been trying to find possible erros with input(such as NameError or SyntaxError) to handle them with an except clause. however, I've found that hitting enter/return while prompted without inputting creates some kind of problem.
>>>username = raw_input("Input a username: ")
Input a username: #hits enter, encounter problem here. Loops forever or something

Using python for ios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120917/89c50f54/attachment.html>


More information about the Tutor mailing list