Python (programming language): Difference between revisions

Content deleted Content added
Hfastedge (talk | contribs)
No edit summary
Hfastedge (talk | contribs)
No edit summary
Line 26:
====Type Checking====
Python is [[dynamic typing|not statically typed]] because python files are interpreted, not compiled.
While this *MAY* not be the best thing for a massive project, it comes in handy for rapid prototyping. Consider this example between:
java (explicitly, statically checked at compile time, and stronglystrictly typed at runtime again)
AND
python (leaves type checking up to the coder, dynamically and strictly checked at runtime, and strongly typed).
 
Basically "strongly typed" means that types are strongly enforced at runtime, eg trying to do something with the wrong type will cause an expected runtime error/exception instead of a [[C programming language|C]]-ish behaviour which is far more loose ([[objective C]] is a bit different)
 
Here is example comparing the features discussed between the python and java above: [[Python-Java/Typeheckexample]]