recursion in Class-methods?

defn noob circularfunc at yahoo.se
Thu Jun 26 23:01:46 CEST 2008


>
> >         if start == end:
> >             return path
> >         if not self.dictionary.has_key(start):
>
>            if start not in self.dictionnary:
>
> >             return None
> >         for node in self.dictionary[start]:
> >             if node not in path:
> >                 newpath = find_path(self.dictionary, node, end, path)
>
>                    newpath = self.find_path(...)
>
> (snip remaining code - same problems, same solutions...)

it is to incoherent fo follow what you mean here(not meaning to sound
rude i appreciate the help).



More information about the Python-list mailing list