News for hackers. Stuff that matters.
Re:Ask HN: Why choose a dynamically typed language? by swolchok on Saturday August 07, 2010 @05:00PM (#1584303)
I believe you meant

    if isinstance(lst, str):
Re:Ask HN: Why choose a dynamically typed language? by pufuwozu on Saturday August 07, 2010 @08:45PM (#1584662)
If you really want to be pedantic, it should be:

    if isinstance(obj, basestring):
So that it works with unicode in Python >= 2.3