great, that is just what I need!
Thank you all! -- Leandro Ardissone On Nov 29, 1:29 pm, Roberto Bonvallet <[EMAIL PROTECTED]> wrote: > Leandro Ardissone wrote: > > And how I can compare this "<type 'str'>" output ? > > I want to decide what to do if the var is an string and what to do if > > not.. > > > Tried with: > > if type(artistList) == "<type 'list'>": > > > and > > if type(artistList) == "list": > > > but nothing..type() doesn't return a string, it returns a type object. > You should try this: > > if isinstance(artistList, list): > ... > > Cheers, > -- > Roberto Bonvallet -- http://mail.python.org/mailman/listinfo/python-list