[Tutor] recursive problem

Joel Goldstick joel.goldstick at gmail.com
Thu Sep 9 17:05:22 CEST 2010

On Thu, Sep 9, 2010 at 10:26 AM, Luke Paireepinart
<rabidpoobear at gmail.com>wrote:

> Shouldn't there be a way to do this without type checking? Duck typing!
> Your post got me thinking.  Maybe better to test if the object can return
an iter method.  If it throws an error, then look at its value.  If it
doesn't, then its a list or a tuple
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100909/1b426713/attachment.html>

More information about the Tutor mailing list