2 ms·
> Letting "integers" silently overflow is weak typing. "Weak typing" is a broad concept, but that's not one of the ideas that it covers. In any case, Python's
by mistercow 15y ago
> Letting "integers" silently overflow is weak typing.
"Weak typing" is a broad concept, but that's not one of the ideas that it covers. In any case, Python's conversion of integers to long integers is not transparent. It is an actual change to a different type, which is an example of weak typing.
- kstrauser 15y agoPython never converts an int to a long. Instead, it may return a long from the result of an operation on an int if that result wouldn't find in an int.