码迷,mamicode.com
首页 > 编程语言 > 详细

Python strange questions list

时间:2015-06-20 15:33:06      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

sys.setrecursionlimit(1<<64)

Line 3: OverflowError: Python int too large to convert to C long

max: 2**64-1, (1<<64) - 1

 

sys.setrecursionlimit(1<<31)

Line 3: OverflowError: signed integer is greater than maximum 

signed integer should be -1<<31 ~ (1<<31) - 1, -2**32 ~ 2**32

Python strange questions list

标签:

原文地址:http://www.cnblogs.com/huashiyiqike/p/4590528.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!