3 ms·
In Python 2, int and long were separate types, where int was either a 32- or 64-bit signed integer, and long was arbitrary precision. Python 3 unified the type
by SloopJon 6y ago
In Python 2, int and long were separate types, where int was either a 32- or 64-bit signed integer, and long was arbitrary precision. Python 3 unified the types under the name int:
https://www.python.org/dev/peps/pep-0237/ https://www.python.org/dev/peps/pep-0237/
This was a nice enhancement with very few drawbacks, but I can see how it wouldn't necessarily be appropriate in Go.
- neillyons 6y agoThat is super interesting. I programmed in Python 2 for a good six years and didn't know it had a long type! >>> type(1) <type 'int'> >>> type(1111111111111111111111111111111111111111111111111111111111111) <type 'long'>