Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71410
| References | <CABMcBh879JgFSke5NGVbPPZBKoUYWXTg+daKoXaVX11kdo-oZQ@mail.gmail.com> <lkrnkp$7fb$1@ger.gmane.org> |
|---|---|
| Date | 2014-05-13 10:09 +1000 |
| Subject | Re: What is the difference between 32 and 64 bit Python on Windows 7 64 bit? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.9928.1399939806.18130.python-list@python.org> (permalink) |
On Tue, May 13, 2014 at 10:05 AM, Sturla Molden <sturla.molden@gmail.com> wrote: > On 11/05/14 08:56, Ross Gayler wrote: > >> Is that true?I have spent a couple of hours searching for a definitive >> description of the difference between the 32 and 64 bit versions of >> Python for Windows and haven't found anything. > > > Why do you care if a Python int object uses 32 or 64 bits internally? Python > 2.x will automatically switch to long when needed. The size of the Python > integer is an internal implementation detail you will not notice. Python > knows when to use a long instead of an int. Python 3.x does not even have a > fixed-size integer. Sometimes you just want to confirm. :) Or maybe you want your program to be able to detect which it's on. There are ways of doing both, but sys.maxint isn't one of them, as it's specific to the int->long promotion of Py2. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: What is the difference between 32 and 64 bit Python on Windows 7 64 bit? Chris Angelico <rosuav@gmail.com> - 2014-05-13 10:09 +1000
csiph-web