python philosophical question - strong vs duck typing

Ben Finney ben+python at benfinney.id.au
Tue Jan 3 18:10:44 EST 2012


Terry Reedy <tjreedy at udel.edu> writes:

> On 1/3/2012 1:13 PM, Sean Wolfe wrote:
>
> > I have a theoretical / philosophical question regarding strong vs
> > duck typing in Python. Let's say we wanted to type strongly in
> > Python
>
> Python objects are strongly typed, in any sensible meaning of the
> term. What you mean is statically or explicitly typing names.

For more on the various spectrums of type systems, and the terms to use,
see <URL:https://en.wikipedia.org/wiki/Type_system>.

-- 
 \      “If I haven't seen as far as others, it is because giants were |
  `\                           standing on my shoulders.” —Hal Abelson |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list