Python sys.maxint, sys.maxunicode on Linux and windows

前端 未结 2 1519
半阙折子戏
半阙折子戏 2020-12-18 07:56

On 64-bit Debian Linux 6:

Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type \"help\", \"copyright\", \"credits\" or \"license\" for         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-18 08:57

    Regarding the difference is sys.maxint, see What is the bit size of long on 64-bit Windows?. Python uses the long type internally to store a small integer on Python 2.x.

提交回复
热议问题