Re: MaxInt on Vista-64bit?



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?
.



Relevant Pages

  • Re: agile/xp question (formal analysis)
    ... >still separate Analysis from Design and so on. ... development of a feature. ... your project plan. ... Thats what all methods achieve, nothing to do with the method itself, ...
    (comp.object)
  • Re: New info on TRON
    ... has some very talented people in software, and i would bet thats a win ... these two games are polar opposites - i love IM, but didnt like Avatar ... With a touch of fast and furious thrown into this pf design (for ... end up buying a NIB Stern despite myself. ...
    (rec.games.pinball)
  • Re: official farewell
    ... mirror,as thats the end of the film,and end of me on internet. ...    Look outside to meditate on, and try to figure out if the design you see ... the naked eye, but most of humanity will realize that a design, resources ... mankind/womankind had to exploit and make use of what God had provided. ...
    (rec.gambling.lottery)
  • Re: this is getting crazy
    ... But the projected sales volume is tens of thousands per annum, so thats millions of photodiodes. ... Aside from the fact I get paid, its heart-warming to design something thats truly helpful. ... Its the brainchild of a guy who worked as a sparky at a facility for disabled people, and was disgusted at the primitive human-computer interfaces available. ...
    (sci.electronics.design)