Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can my programs access more than 4GB of memory?

Tags:

python

64-bit

if I run python on a 64bit machine with a 64bit operating system, will my programs be able to access the full range of memory? I.e. Could I build a list with 10billion entries, assuming I had enough RAM? If not, are there other programming languages that would allow this?

like image 525
Ben Avatar asked Feb 19 '09 12:02

Ben


1 Answers

You'll need to be sure that Python has been built as a 64 bit application. For example, on Win64 you'll be able to run the 32bit build of Python.exe but it won't get the benefits of the 64 bit environment as Windows will run it in a 32bit sandbox.

like image 80
Sean Avatar answered Oct 08 '22 18:10

Sean