[Pythonmac-SIG] (no subject)

Nathan nathan.stocks at gmail.com
Thu May 29 17:53:55 CEST 2008


On Thu, May 29, 2008 at 9:25 AM, Georg <lydaque at yahoo.com> wrote:
>
> Hello,
>
> I'm running Python under OS X 10.4 on a MacPro, and I'm running up against
> the limitations of a 32 bit address space (i.e., I can't use more than 4gb
> of space).  I have 64 bit processors in my machine -- will upgrading to
> Leopard allow Python to use a 64 bit address space?
>
> sorry if this seems like a dumb/naive question, but I can't for the life of
> me figure this out by googling around.

I don't know the answer exactly, but the maxint on my C2D MBPro
running Leopard seems 32-bit-ish:

$ python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxint
2147483647

...whereas my 64-bit Gentoo linux box seems more 64-bit-ish:

# python
Python 2.4.4 (#1, Dec 12 2007, 10:10:30)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxint
9223372036854775807

~ Nathan


More information about the Pythonmac-SIG mailing list