[Python-3000] Discussions with no PEPs

Bill Janssen janssen at parc.com
Fri Mar 9 18:35:59 CET 2007


> Bill Janssen wrote:
> > Calling a method on an object doesn't seem like duck-typing to
> > me, though.
> 
> It's duck typing in the sense that you don't have to
> formally declare the object as conforming to some
> interface before you can call the method.

Oh, OK.  I'm against (mandatory) type declarations.  However, I do
believe that the object's type should have to include the expected
interface for the method invocation to succeed.  I'm not arguing for
mandatory enforcement of that "should" in Python itself, but rather
for a clear language so that the provider of a value and the user of a
value can communicate about what's expected and/or required by the
logic of the program.

Bill


More information about the Python-3000 mailing list