[Tutor] please help!

Magnus Lycka magnus@thinkware.se
Sat Jan 11 12:44:01 2003


At 10:39 2003-01-11 -0600, Don Arnold wrote:
>   if type(arg) in (list,tuple):

I avoided this construct and checked whether the object had a
__len__ atribute instead. My thought was that it would be good
if it worked also with classes that act like sequences etc.


-- 
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/  mailto:magnus@thinkware.se