On 1/23/06, Aldo Cortesi <[EMAIL PROTECTED]> wrote:
Thanks, that seems to work fine. But about your other comment. . .
>Well, leaving aside the merits of using "input" (which should be avoided at all
>costs)
What do you mean?
Well, leaving aside the merits of using "input" (which should be avoided at all
costs), here's one way to do what you want:
while 1:
try:
x = input("> ")
break
except SyntaxError:
print "explain the problem here"
Cheers,
Aldo
Thanks, that seems to work fine. But about your other comment. . .
>Well, leaving aside the merits of using "input" (which should be avoided at all
>costs)
What do you mean?
--
-Ivan
-- http://mail.python.org/mailman/listinfo/python-list