[Tutor] recursivity and lists
Danny Yoo
danny.yoo at gmail.com
Tue Mar 1 15:40:32 EST 2016
Also, as a quick note: Python list append is not functional: it mutates
rather than returns a useful return value. You may need to revisit the
parts in the code where it assumes a different behavior from functional
append.
On Mar 1, 2016 12:36 PM, "Danny Yoo" <dyoo at hashcollision.org> wrote:
>
> >
> > Problem is that python complains that he cannot know the type of the
> result of this function (list). In C++ I would specify the type, but from
> what I understood, Python should not need this. What did I miss ?
>
> Can you copy the exact stack trace of the error? It'll help: you've
> interpreted what the error means, which is useful, but it's also important
> to show the unvarnished output too. It will let us look and make our own
> interpretations.
>
> Good luck!
>
More information about the Tutor
mailing list