[Ironpython-users] should 64 bit sys.maxsize be fixed?

Jeff Hardy jdhardy at gmail.com
Wed Feb 15 21:32:08 CET 2012


It's actually correct. Arrays in .NET 64-bit are still limited to
2147483647 elements[1], so the value is accurate.

- Jeff

[1] http://stackoverflow.com/questions/2338778/what-is-the-maximum-length-of-an-array-in-net-on-64-bit-windows

On Wed, Feb 15, 2012 at 11:53 AM, Vernon Cole <vernondcole at gmail.com> wrote:
>
> Should this be fixed in a future version?
>
> <console dump>
> C:\Users\vernon>c:\python32\python.exe
> Python 3.2.2 (default, Sep  4 2011, 09:07:29) [MSC v.1500 64 bit (AMD64)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> sys.maxsize
> 9223372036854775807
>>>> exit()
>
> C:\Users\vernon>"c:\program files (x86)\IronPython 2.7\ipy64"
> IronPython 2.7.2a2 (2.7.0.40) on .NET 4.0.30319.239 (64-bit)
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> sys.maxsize
> 2147483647
>
> C:\Users\vernon>c:\python27\python.exe
> Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> sys.maxsize
> 9223372036854775807L
>>>>
> </console dump>
> --
> Vernon
>
>
>
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users at python.org
> http://mail.python.org/mailman/listinfo/ironpython-users
>


More information about the Ironpython-users mailing list