On Tue, Oct 19, 2010 at 3:55 PM, Philip Semanchuk <phi...@semanchuk.com> wrote: > > On Oct 19, 2010, at 5:38 PM, Hexamorph wrote: > >> On 19.10.2010 23:18, Vincent Davis wrote: >>> How do I get the bit version of the installed python. In my case, osx >>> python2.7 binary installed. I know it runs 64 bt as I can see it in >>> activity monitor. but how do I ask python? >>> sys.version >>> '2.7 (r27:82508, Jul 3 2010, 21:12:11) \n[GCC 4.0.1 (Apple Inc. build >>> 5493)]' >>> >> >> In [1]: import platform >> >> In [2]: platform.architecture() >> Out[2]: ('32bit', 'ELF') >> >> In [3]: > > > Looks a lot better than my suggestion! Yes that looks like the right way of doing it. Interesting though that platform.machine()=i386 and not something about 64. >>> print platform.machine() i386 >>> print platform.architecture() ('64bit', '') >>> import sys; sys.maxint 9223372036854775807
Thanks Vincent > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list