Re: [Tutor] loop raw input

2010-05-21 Thread Norman Khine
hi, thanks for the feedback, it is much appreciated. On Fri, May 21, 2010 at 7:54 PM, bob gailer wrote: > Also note that the database function creates a local variable "database" but > does nothing with it. > When the function terminates that variable is lost. > Did you intend to return it? yes,

Re: [Tutor] loop raw input

2010-05-21 Thread bob gailer
Also note that the database function creates a local variable "database" but does nothing with it. When the function terminates that variable is lost. Did you intend to return it? Also it is not good practice to use the same name for a function and a variable. -- Bob Gailer 919-636-4239 Chapel

Re: [Tutor] loop raw input

2010-05-21 Thread bob gailer
On 5/21/2010 5:35 AM, Norman Khine wrote: hello, i have this script, but i am stuck at the loop, if the user types an incorrect database id: http://paste.lisp.org/+25D3 how would i write the exception correctly? Which line of code could raise the ValueError exception? That line should be

[Tutor] loop raw input

2010-05-21 Thread Norman Khine
hello, i have this script, but i am stuck at the loop, if the user types an incorrect database id: http://paste.lisp.org/+25D3 how would i write the exception correctly? norman -- %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] ) __