473,230 Members | 1,414 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 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 13503
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Randell D. | last post by:
Folks, Sorry for the cross post into multiple newsgroups on this, but html forms processing is supported across all three groups so I was hoping someone might know. I did a check with Google...
0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
2
by: steve | last post by:
I am setting up a huge database in mysql, and I get the above error in Linux. I believe it is related to the size of one of my tables, which is 4,294,966,772 bytes in size. Can someone help. How...
3
by: Amy | last post by:
Is there an upper limit to how many Session variables you can transfer? I'm working on a utility application that passes info from a web form into a pdf. There's no database access, so I'm using...
5
by: Daniel | last post by:
c# string size limit? length of string limit?
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
89
by: Tubular Technician | last post by:
Hello, World! Reading this group for some time I came to the conclusion that people here are split into several fractions regarding size_t, including, but not limited to, * size_t is the...
6
by: howa | last post by:
Suppose the file is stored in "upload_tmp_dir ", so why I need to increase the memory limit? If I want to upload 100 MB, how large should I set? Thanks.
10
by: timor.super | last post by:
Hi all, Imagine I've an array of int : int anArray = new int; I want to extract all the integer that are superior to 500 I can do :
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.