Can my programs access more than 4 GB of memory?

If I run python on a 64-bit machine with a 64-bit operating system, will my programs be able to access the full range of memory? That is, can I create a list with 10 billion entries, assuming I have enough RAM? If not, are there other programming languages ​​that would allow this to be done?

+6
python 64bit
source share
2 answers

You need to be sure that Python was created as a 64-bit application. For example, on Win64, you can run the 32-bit build of Python.exe, but it will not get the benefits of a 64-bit environment, since Windows will run it in a 32-bit sandbox.

+7
source share

The python language itself does not have such restrictions, but perhaps your operating system or your python runtime (pypy, cpython, jython) may have such restrictions.

What combination of runtime and python OS do you want to use?

+3
source share

All Articles