[Tutor] Problem with "input" in Python 3

2010-02-15 Thread Peter Anderson
ebug\tserver\_sandbox.py", line 10, in main builtins.ValueError: too many values to unpack >>> Clearly the problem lies in the input statement. If I comment out line 10 and remove the comments at lines 12 and 16 then the program runs perfectly. However, I feel this is a clumsy solu

[Tutor] Problem with "input" in Python 3

2010-02-15 Thread Peter Anderson
I seem to be having a formatting problem between Thunderbird on my PC and the mailing list; I am loosing all indentation. The Gmail account settings on Thunderbird are for plain text and I set the e-mail content to fixed width text so I'm not sure what's going wrong. I am trying one last time sendi

[Tutor] Problems with Python 3 and Tkinter

2009-02-21 Thread Peter Anderson
lp me understand how to get this script running. Additionally, is there any references to Python 3 and Tkinter other than the standard documentation (which is flimsy at best). Regards, Peter -- *Peter Anderson* There is nothing more difficult to take in h

Re: [Tutor] Problems with Python 3 and Tkinter

2009-02-21 Thread Peter Anderson
handling Tkinter and tkMessageBox. Regards, Peter -- *Peter Anderson* There is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introduction of a new order of things—Niccolo Machiavelli, /The Prince/, ch. 6

Re: [Tutor] Problems with Python 3 and Tkinter

2009-02-21 Thread Peter Anderson
with trying to understand how tkinter and its modules are used. For example, exactly what modules are able to be used? Regards, Peter -- *Peter Anderson* There is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introdu

Re: [Tutor] Problem with multiple input

2009-07-29 Thread Peter Anderson
Alan, Thanks heaps for the quick feedback. I think you are right about multiple inputs on the one line. Looks elegant but is hard work. Regards, Peter -- *Peter Anderson* There is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take

[Tutor] Problem formatting raw_input

2008-10-30 Thread Peter Anderson
to quit): ") while inNum != "": # strip leading '0's from ASCII numbers if inNum[0] == "0": inNum = inNum[1] + inNum[2] inStr = chr(eval(inNum)) inString.append(inStr) # append the input to the list inNum = raw_input("Please enter an ASCII number\n(33 - 126,

Re: [Tutor] Problem formatting raw_input

2008-10-30 Thread Peter Anderson
In the def convert_string... function why do you include the "except ValueError: / return 0" clause? Regards, Peter -- *Peter Anderson* There is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introdu