[Python-3000] Changing function-related TypeErrors

Guido van Rossum guido at python.org
Sat May 6 01:38:33 CEST 2006


On 5/5/06, Bill Janssen <janssen at parc.com> wrote:
> > > 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.

You want to get rid of all duck typing? That doesn't sound right to
me. Anyway it isn't enforceable. I must be misunderstanding you.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list