What's the limit of variables size in pyhton?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Mon Dec 31 17:53:28 EST 2007
En Mon, 31 Dec 2007 20:05:41 -0200, هنداوى <3D.v.World at gmail.com> escribi�:
> On Dec 31, 11:26 am, "James Matthews" <nytrok... at gmail.com> wrote:
>> However some Debuggers will not show you variable's that are too big!
>>
>> On Dec 31, 2007 7:38 PM, Gabriel Genellina <gagsl-... at yahoo.com.ar>
>> wrote:
>>
>> > En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى <3D.v.Wo... at 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
More information about the Python-list
mailing list