Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    @JonClements -- Yeah, I suppose so. Good call. :) Commented Dec 18, 2012 at 16:24
  • OMG - that's scary - we both just added that at the same time :) (the str/basestring thing that is) - Good point about properties though + 1:) Commented Dec 18, 2012 at 16:27
  • @JonClements -- We seem to have hive mind for this question. We posted simultaneously as well... Commented Dec 18, 2012 at 16:28
  • @RocketDonkey -- I forgot to add the line : isintance = isinstance at the top ;-) Commented Dec 18, 2012 at 16:30
  • 1
    @vanattab -- Basically, yes. The idea is that if the variable acts like a duck, and smells like a duck, and looks like a duck, then it must be a duck. Commented Dec 18, 2012 at 17:45