[Tutor] Re: check for nested sequences & flatten

Remco Gerlich scarblac@pino.selwerd.nl
Thu, 14 Feb 2002 15:48:23 +0100


On  0, kevin parks <kp87@lycos.com> wrote:
> >      is type(item) in (types.ListType, types.TupleType):
> 
> 
> I copied this and the interpreter barfed. It said sytax error and pointed at the is type(item) in (types.ListType, types.TupleType):
> line. Anyone see this syntax error, i can't. It looks ok to me

I made a typo. It should be 'if', not 'is'.

-- 
Remco Gerlich