[Tutor] recursive problem

Francesco Loffredo fal at libero.it
Thu Sep 9 17:29:31 CEST 2010

On 09/09/2010 17.05, Joel Goldstick wrote:
> On Thu, Sep 9, 2010 at 10:26 AM, Luke Paireepinart
> <rabidpoobear at gmail.com <mailto: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

... Oh, my ...

I think type checking is simpler. Maybe not that duckly, but...

-------------- next part --------------

Nessun virus nel messaggio in uscita.
Controllato da AVG - www.avg.com 
Versione: 9.0.851 / Database dei virus: 271.1.1/3121 -  Data di rilascio: 09/08/10 08:07:00

More information about the Tutor mailing list