You are assuming that Python 3 has the same numeric types as C. It doesn't. There is no short int or long int, only
int
. A Python 3 integer can be arbitrarily large (limited only by memory) so Python 3 has no
sys.maxint
constant. Python has no distinction between float and double. A Python
float
is what C programmers call a
double
and its value is represented in 8 bytes (plus variable overhead for things like reference counting), and like all IEEE-754 64-bit floats, has a range of ±2.23×10^-308 to ±1.80×10^+308. —
BoarGules 44 secs ago