I need a way to tell what mode the shell is in from within the shell.
While I\'m primarily an OS X user, I\'d be interested in knowing about other platforms as well.<
Based On abe32's answer,
import sys n_bits = 32 << bool(sys.maxsize >> 32)
n_bits will have 32 or 64 bits.