[Tutor] loop raw input

Norman Khine norman at khine.net
Fri May 21 23:13:01 CEST 2010


hi,
thanks for the feedback, it is much appreciated.

On Fri, May 21, 2010 at 7:54 PM, bob gailer <bgailer at gmail.com> 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, i was going to use it further in the script, i will change the
script so that it stores this. i have not reached that stage yet in
the script where i require this.

> Also it is not good practice to use the same name for a function and a
> variable.
here was a version i did before i read your reply, http://paste.lisp.org/+25DN
is there anything you think i could do to make it more efficient?

thanks
norman

> --
> Bob Gailer
> 919-636-4239
> Chapel Hill NC
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )


More information about the Tutor mailing list