Mark McEahern wrote: > $ python > >>> import types > >>> l = [] > >>> if type(l) == types.ListType: > ... print "yeah baby!" > ... > yeah baby! or better: if type(l) is types.ListType: ... or even better: if isinstance(l, types.ListType): ... or, in 2.2 or later: if isinstance(l, list): ... </F>