Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
azakai
12y ago
0 comments
Share
Correct, that's a python 2/3 difference. But both 2 and 2 have arbitrary precision integers AFAIK, try this code
x = 1 for i in range(100): x = x*2 print(i, x)
0 comments
default
newest
oldest
e12e
12y ago
Indeed. Just to verify that it's not just a difference in (string)representation, something like:
print(9**32-(9**32-5))
Also works (brython returns 0, python2&3 return 5)
j
/
k
navigate · click thread line to collapse