Re: [Tutor] Input handling?

2012-09-18 Thread Scott Yamamoto
Thanks for everything. I'll keep this in mind as I continue coding.___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Input handling?

2012-09-18 Thread Scott Yamamoto
0) using mobile yahoo mail 1) expect: raw_input to assign the variable to "" 2)No output to stderr; has a loading symbol after hitting enter without input (tried both input and raw_input) Doesn't affect active interpreter. Only affects the screen with the run option. 3) def simulation():   import

Re: [Tutor] Input handling?

2012-09-17 Thread Scott Yamamoto
2.7.2 on python for ios(platform is darwin) problem reoccured Script: import random username = "" def playername(): global username Mlist = ["name1","name2","name3"] Flist = ["name4","name5", "name6"] Llist = ["Lname1","Lname2","Lname3"] username = raw_input("input your desired username:

Re: [Tutor] Input handling?

2012-09-17 Thread Scott Yamamoto
Didnt show up at first. Result was an eof error (using input not raw_input) Found with interactive interpreter___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Input handling?

2012-09-17 Thread Scott Yamamoto
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: