Static Typing in Python

Terry Reedy tjreedy at udel.edu
Mon Mar 15 11:58:00 EST 2004


"Peter Hickman" <peter at semantico.com> wrote in message
news:4055cb43$0$7558$afc38c87 at news.easynet.co.uk...
> Perhaps you should read the following where Guido van Rossum talks about
> typing in Python. Here he is contrasting strongly typed languages with
> Python.
>
> "In a strongly typed language,

Type, in the sense used here, is an attribute of identifiers/variables or
an attribute of objects, but not, properly speaking, an attribute of
languages.  So what Guido seems to mean here, following common usage
understood by the interviewer and judging from the rest of the quote, is a
language with strongly typed identifiers, which Python is not.  It does
have typed objects.  The object data model of Python (and other languages)
is sufficiently different from the slice-of-linear-memory data model of C
(and other languages) that one needs to be really careful in applying the
same adjectives to both.

Terry J. Reedy







More information about the Python-list mailing list