471,320 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,320 software developers and data experts.

What's the limit of variables size in pyhton?

Python allow you to only take care about variable name and ignore it's
size because pyhton dynamicly allocate it
so what's the limit in the allocated size in the memory
Dec 31 '07 #1
5 13184
En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى <3D********@gmail.comescribi�:
Python allow you to only take care about variable name and ignore it's
size because pyhton dynamicly allocate it
so what's the limit in the allocated size in the memory
As big as would fit on available memory.

--
Gabriel Genellina

Dec 31 '07 #2
On Dec 31, 11:26*am, "James Matthews" <nytrok...@gmail.comwrote:
However some Debuggers will not show you variable's that are too big!

On Dec 31, 2007 7:38 PM, Gabriel Genellina <gagsl-...@yahoo.com.arwrote:
En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى<3D.v.Wo...@gmail.com>
escribi�:
Python allow you to only take care about variable name and ignore it's
size because pyhton dynamicly allocate it
so what's the limit in the allocated size in the memory
As big as would fit on available memory.
Is that mean that i can deal with files with size more than 2GB only
if the available memory allow
Dec 31 '07 #3
On Dec 31, 4:05*pm, "هنداوى" <3D.v.Wo...@gmail.comwrote:
On Dec 31, 11:26*am, "James Matthews" <nytrok...@gmail.comwrote:
However some Debuggers will not show you variable's that are too big!
On Dec 31, 2007 7:38 PM, Gabriel Genellina <gagsl-...@yahoo.com.arwrote:
En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى <3D.v.Wo...@gmail.com>
escribi�:
Python allow you to only take care about variable name and ignore it's
size because pyhton dynamicly allocate it
so what's the limit in the allocated size in the memory
As big as would fit on available memory.

Is that mean that i can deal with files with size more than 2GB only
if the available memory allow
No, files can be often be dealt with in manageable
chunks. Instead of reading the entire file into
memory, often it suffices to read in a line at a
time.
Dec 31 '07 #4
En Mon, 31 Dec 2007 20:05:41 -0200, هنداوى <3D********@gmail.comescribi�:
On Dec 31, 11:26*am, "James Matthews" <nytrok...@gmail.comwrote:
>However some Debuggers will not show you variable's that are too big!

On Dec 31, 2007 7:38 PM, Gabriel Genellina <gagsl-...@yahoo.com.ar>
wrote:
En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى <3D.v.Wo...@gmail.com>
escribi�:
Python allow you to only take care about variable name and ignore
it's
size because pyhton dynamicly allocate it
so what's the limit in the allocated size in the memory
As big as would fit on available memory.

Is that mean that i can deal with files with size more than 2GB only
if the available memory allow
To be more precise, that depends on the OS. On Windows there is a limit of
2GB adressable memory per process (this is unrelated to the amount of
physical memory). You may increase that limit to 3GB. I think Python can
handle all the memory the OS is able to provide.
But do you actually have to keep the whole file in memory?

--
Gabriel Genellina

Dec 31 '07 #5
In the darkest hour on Mon, 31 Dec 2007 20:53:28 -0200,
Gabriel Genellina <ga*******@yahoo.com.arscreamed:
>Is that mean that i can deal with files with size more than 2GB only
if the available memory allow

To be more precise, that depends on the OS. On Windows there is a limit of
2GB adressable memory per process (this is unrelated to the amount of
physical memory).
That's the 32bit Windows limit only (afaik).

--
[ Artur M. Piwko : Pipen : AMP29-RIPE : RLU:100918 : From == Trap! : SIG:240B ]
[ 16:51:04 user up 11576 days, 4:46, 1 user, load average: 0.97, 0.71, 0.01 ]

No wonder people are so horrible when they start life as children. -- K. Amis
Jan 4 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Randell D. | last post: by
reply views Thread by Ravi Tallury | last post: by
2 posts views Thread by steve | last post: by
3 posts views Thread by Amy | last post: by
669 posts views Thread by Xah Lee | last post: by
89 posts views Thread by Tubular Technician | last post: by
10 posts views Thread by timor.super | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.