How to find if python running as 32 or 64 bit?

by , under python

I don’t know if there is an easy or “standard” way of doing this. Did not bother to google and i do so using the sys module in the interpreter…

import sys

64 bit ==> 9223372036854775807
32 bit ==> 2147483647

Leave a Reply