News for hackers. Stuff that matters.
Re:An Object is not a Hash by hythloday on Tuesday October 09, 2012 @07:01AM (#4630887)
"Overflowing an int" is something that I worry about when I'm thinking in terms of memory layout of data. I shouldn't have to worry about it when working at a higher level of abstraction. Python handles this correctly:

  >>> int('0x7fffffff', 16)
  2147483647
  >>> int('0x7fffffff', 16) + 1
  2147483648L

There are no comments on this comment yet.