What is the maximum size of variable in python?
See Show
On my MacBook Pro with a 64-bit build of CPython, it's quite sensibly 263-1 bytes:
While on my 32-bit Linux box, it's 2^31-1:
In practice, of course, you're unlikely to be able to actually make use of objects this large, but you can expect to run into serious practical problems (like, say, being out of memory or taking forever to load/save objects from storage) before you hit the theoretical limits.
Python allow you to only take care about variable name and ignore it's Dec 31 '07 #1
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 As big as would fit on available memory. -- Dec 31 '07 #2
On Dec 31, 11:26�*am, "James Matthews" <: However some Debuggers will not show you variable's that are too big! Is that mean that i can deal with files with size more than 2GB only Dec 31 '07 #3
On Dec 31, 4:05�*pm, "هنداوى" On Dec 31, 11:26�*am, "James Matthews" <:However some Debuggers will not show you variable's that are too big!On Dec 31, 2007 7:38 PM, Gabriel Genellina <:En Mon, 31 Dec 2007 15:40:31 -0200, هنداوى <> No, files can be often be dealt with in manageable Dec 31 '07 #4
En Mon, 31 Dec 2007 20:05:41 -0200, هنداوى <3D********@gmail.comescribi�: On Dec 31, 11:26�*am, "James Matthews" <:>However some Debuggers will not show you variable's that are too big! To be more precise, that depends on the OS. On Windows there is a limit of -- Dec 31 '07 #5
In the darkest hour on Mon, 31 Dec 2007 20:53:28 -0200, That's the 32bit Windows limit only (afaik). -- No wonder people are so horrible when they start life as children. -- K. Amis Jan 4 '08 #6 Replies have been disabled for
this discussion. |