Just some FYI options.

>     if not matchfilename:
May return positive if you someday return an object that holds a 'not'
value.

>     resultname="""
That starts a string literal.

>     if (matchdistance < threshold):
Parentheses optional.

>     return (matchdistance,resultname)
Parentheses optional there too.  "return matchdistance," returns a
'one-tuple'.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to