How to check is something is a list or a dictionary or a string?
dudeja.rajat at gmail.com
dudeja.rajat at gmail.com
Fri Aug 29 12:16:06 EDT 2008
Hi,
How to check if something is a list or a dictionary or just a string?
Eg:
for item in self.__libVerDict.itervalues():
self.cbAnalysisLibVersion(END, item)
where __libVerDict is a dictionary that holds values as strings or
lists. So now, when I iterate this dictionary I want to check whether
the item is a list or just a string?
Thanks,
Rajat
More information about the Python-list
mailing list