[DB-SIG] How can I detect 64 bit versions of Python?
Daniele Varrazzo
daniele.varrazzo at gmail.com
Mon Feb 13 23:54:12 CET 2012
On Mon, Feb 13, 2012 at 10:19 PM, Vernon Cole <vernondcole at gmail.com> 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
More information about the DB-SIG
mailing list