Re: How can I detect 64 bit versions of Python?
Daniele Varrazzo <[email protected]>
| Newsgroups | gmane.comp.python.db |
|---|---|
| Message-ID | <CA+mi_8aEf1wjSazL4Q2SDfZS+U28gJOOCYenSHk0LNVDfYfOow@mail.gmail.com> |
On Mon, Feb 13, 2012 at 10:19 PM, Vernon Cole <[email protected]> wrote: > So, how can I tell which "width" of Python I am running, so I know which > connection string to use? I use sys.maxint, which is 2^63-1 on 64 bit and 2^31-1 on 32 bit. It's not available on py3, but sys.maxsize is available on both, and it's probably equivalent. -- Daniele _______________________________________________ DB-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/db-sig