Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MaxInt on Vista-64bit?

1 view
Skip to first unread message

googler.1...@spamgourmet.com

unread,
Jan 24, 2009, 2:57:45 PM1/24/09
to
Hi!

I downloaded Python64 for Windows Vista64 but the value returned from
sys.maxint is just a 32bit integer. I found out, thats by design,
Microsoft decided to make the long value 32bit. What can I do to
compile python 2.6 with maxint of 64bit integers?

Can I replace the int values to a int64 value?


Thanks a lot!

"Martin v. Löwis"

unread,
Jan 24, 2009, 3:06:39 PM1/24/09
to
> I downloaded Python64 for Windows Vista64 but the value returned from
> sys.maxint is just a 32bit integer. I found out, thats by design,
> Microsoft decided to make the long value 32bit. What can I do to
> compile python 2.6 with maxint of 64bit integers?

At a minimum, you need to change ob_ival to a 64-bit type in
PyIntObject. Consequentially, you probably need to change a lot
of other functions, e.g. PyInt_AsLong should probably also return
a 64-bit integer (as should PyInt_FromLong accept one). In turn,
you will need to change all callers of these functions to adjust
their parameter types. And so on.

> Can I replace the int values to a int64 value?

See above. In short: no. Use a real 64-bit operating system
(such as 64-bit Linux, Solaris, FreeBSD, etc)

Regards,
Martin

P.S. I do wonder why you want to do this, though. Isn't Python's
long integer type good enough?

googler.1...@spamgourmet.com

unread,
Jan 24, 2009, 3:10:17 PM1/24/09
to
Hi!

Thanks for the fast answer. Yes, its enough but I never thought that
Vista64 is not a real 64-bit operating system :-o.

0 new messages