Why does the Python 2.7 AMD 64 installer seem to run Python in 32 bit mode?

后端 未结 2 1162
清酒与你
清酒与你 2020-11-28 13:43

I\'ve installed Python 2.7 from the python-2.7.amd64.msi package from python.org. It installs and runs correctly, but seems to be in 32-bit mode, despite the fact that the

2条回答
  •  粉色の甜心
    2020-11-28 14:34

    See the discussion here. It's from 2.6.1, but it seems to still apply. I haven't seen evidence to the contrary anywhere, at least. The gist of the matter (quoted from that link) is:

    This is by design. In their infinitive wisdom Microsoft has decided to make the 'long' C type always a 32 bit signed integer - even on 64bit systems. On most Unix systems a long is at least 32 bit but usually sizeof(ptr).

提交回复
热议问题