Skip to content

Instantly share code, notes, and snippets.

@MarkRoddy
Created June 13, 2013 15:29
Show Gist options
  • Save MarkRoddy/5774630 to your computer and use it in GitHub Desktop.
Save MarkRoddy/5774630 to your computer and use it in GitHub Desktop.
mroddy@mroddy-local-vm:~$ python sumnums.py
Traceback (most recent call last):
File "sumnums.py", line 19, in <module>
x = sum(xrange(sys.maxint+1, sys.maxint+100000000))
OverflowError: Python int too large to convert to C long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment