From: Eevee Date: Tue, 2 Feb 2010 07:50:33 +0000 (-0800) Subject: Fixed comments in pokedex.lookup. X-Git-Tag: veekun-promotions/2010050901~113 X-Git-Url: http://git.veekun.com/zzz-pokedex.git/commitdiff_plain/a55a7a1ca696ec7fd778c5c17a8b40bdf7b28e4a?hp=acec17f23a8d18407ca183cb8064636cf5183237 Fixed comments in pokedex.lookup. --- diff --git a/pokedex/lookup.py b/pokedex/lookup.py index 2565fcc..69eedc4 100644 --- a/pokedex/lookup.py +++ b/pokedex/lookup.py @@ -228,10 +228,11 @@ def _whoosh_records_to_results(records, session, exact=True): def lookup(input, valid_types=[], session=None, indices=None, exact_only=False): """Attempts to find some sort of object, given a database session and name. - Returns a list of named (object, name, language, exact) tuples. `object` - is a database object, `name` is the name under which the object was found, - `language` is the name of the language in which the name was found, and - `exact` is True iff this was an exact match. + Returns a list of named (object, name, language, iso3166, exact) tuples. + `object` is a database object, `name` is the name under which the object + was found, `language` and `iso3166` are the name and country code of the + language in which the name was found, and `exact` is True iff this was an + exact match. This function currently ONLY does fuzzy matching if there are no exact matches.