[Baypiggies] Newbie-ish type questions...
charles.merriam at gmail.com
Wed Apr 23 08:01:48 CEST 2008
I've been creating a growing number of type functions of the form:
return type(l) is list
return isinstance(s, basestring)
return hasattr(i, "next") and hasattr(i, "__iter__")
I feel like I must of missed something when I learned Python. Is
there a simple call I'm missing for
these? Does this get better in 3.0?
More information about the Baypiggies