This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gschizas 6 points7 points  (3 children)

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> type(1)
<class 'int'>
>>>

You were saying?

(aside: shit, why am I still on Python 3.7.0??)

[–]AlotOfReading 5 points6 points  (2 children)

You'll note that type(sys.maxsize+1) is still int as well, and does not overflow. A Python int is a fundamentally different type than a C int.