Python CPU

Stefan Behnel stefan_ml at behnel.de
Fri Apr 1 13:00:53 EDT 2011


Nobody, 01.04.2011 18:52:
> Java is a statically-typed language which makes a distinction between
> primitive types (bool, int, double, etc) and objects. Python is a
> dynamically-typed language which makes no such distinction. Even something
> as simple as "a + b" can be a primitive addition, a bigint addition, a
> call to a.__add__(b) or a call to b.__radd__(a), depending upon the values
> of a and b (which can differ for different invocations of the same code).
>
> This is one of the main reasons that statically-typed languages exist, and
> are used for most production software.

I doubt that the reason they are "used for most production software" is a 
technical one.

Stefan




More information about the Python-list mailing list