newbie question structure of function
nodrogbrown
nodrogbrown at gmail.com
Fri Mar 14 02:42:10 EDT 2008
> > > resultname="""
> > > That starts a string literal.
>
> i am not sure if this is the right way..i used it in case
> matchdistance < threshold return False.then the filename will not be
> taken from the filenameslist and so returns as an empty string.
>a one-tuple
why not use None instead?
if (matchdistance < threshold):
resultname=filenameslist[index]
else:
resultname=None
will that not be better?
gordon
More information about the Python-list
mailing list