SEE: Ten things people want to know about Python for more details.

  • People often use the term strongly-typed language to refer to a language that is both statically typed (types are associated with a variable declaration -- or, more generally, the compiler can tell which type a variable refers to, for example through type inference, without executing the program) and strongly-typed (restrictive about how types can be intermingled). So, if you look at dynamic typing and strong-typing as orthogonal concepts, Python can be both dynamically and strongly typed.

Another answer:

And another one:

And another:

Real Life Example:

This author (SkipMontanaro) used to operate a now defunct concert calendar website. The backend was implemented in Python, but the front end was implemented in Mason, a Perl-based web application platform. One bug which took awhile to figure out was why entering concert dates for the band "311" failed. Python was seeing an int instead of a string. It turns out somewhere in the Perl or Mason frontend "311" was being converted into an integer.

Why is Python a dynamic language and also a strongly typed language (last edited 2012-02-24 13:34:06 by 87-119-185-195)

Unable to edit the page? See the FrontPage for instructions.