Re: checking for mis-spelled variable names / function names

2008-11-25 Thread John Machin
On Nov 26, 10:16 am, News123 <[EMAIL PROTECTED]> wrote: > Hi, > > Let's imagine following code > > def specialfunc(): >         print "very special function" > > name= getuserinput() > if name == 'one_name_out_of_a_million': >         print "Hey your name '%s' is really rare" % namee >         spec

Re: checking for mis-spelled variable names / function names

2008-11-25 Thread Chris Rebert
On Tue, Nov 25, 2008 at 3:16 PM, News123 <[EMAIL PROTECTED]> wrote: > Hi, > > Let's imagine following code > > def specialfunc(): >print "very special function" > > name= getuserinput() > if name == 'one_name_out_of_a_million': >print "Hey your name '%s' is really rare" % namee >

checking for mis-spelled variable names / function names

2008-11-25 Thread News123
Hi, Let's imagine following code def specialfunc(): print "very special function" name= getuserinput() if name == 'one_name_out_of_a_million': print "Hey your name '%s' is really rare" % namee specialfunk() my python script could survive thousands of runs before falling