3 ms·
I believe you meant if isinstance(lst, str):
by swolchok 16y ago
I believe you meant
if isinstance(lst, str):
- pufuwozu 16y agoIf you really want to be pedantic, it should be: if isinstance(obj, basestring): So that it works with unicode in Python >= 2.3