[Python-3000] Changing function-related TypeErrors
Bill Janssen
janssen at parc.com
Sat May 6 01:28:07 CEST 2006
> > Is there anywhere else in Python where the type of an object isn't
> > checkable with isinstance()?
>
> Yes, it's called duck typing.
And, in my opinion, it's probably worth stomping out in Py3K. It
developed as necessary because of the original dichotomy between C
classes and Python classes in Python 1, but it's now obsolete.
Mix-ins should be used instead.
Bill
More information about the Python-3000
mailing list