newbie question structure of function
menosaint at gmail.com
menosaint at gmail.com
Fri Mar 14 01:44:54 EDT 2008
Aaron
thanx for the input
> > 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.
> > return (matchdistance,resultname)
>
> Parentheses optional there too. "return matchdistance," returns a
> 'one-tuple'.
but then the call matchvalue,matchfilename=findmatchingfile()
will give ValueError trying to unpack from a one-tuple
if anyone can suggest a more decent way of doing this pls do
thanx
vincent
More information about the Python-list
mailing list