Differences between revisions 3 and 4
Revision 3 as of 2008-08-12 05:19:56
Size: 637
Editor: 219
Comment:
Revision 4 as of 2008-08-12 19:40:50
Size: 1070
Editor: 89-138-46-9
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:

Another answer:
 * Python is strongly typed as the interperter keeps track of all variables types. It's also very dynamic as it rarely uses what it knows to limit variable usage. In Python, it's the program's responsibility to use built-in functions like isinstance() and issubclass() to test variable types and correct usage. Python tries to stay out of your way while giving you all you need to implement strong type checking.

SEE:[wiki:Ten_things_people_want_to_know_about_Python Ten things people want to know about Python]for more details.

Answer
  • 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:

  • Python is strongly typed as the interperter keeps track of all variables types. It's also very dynamic as it rarely uses what it knows to limit variable usage. In Python, it's the program's responsibility to use built-in functions like isinstance() and issubclass() to test variable types and correct usage. Python tries to stay out of your way while giving you all you need to implement strong type checking.

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.