William Kyngesburye <wokl...@kyngchaos.com> wrote:

> If you run the CLI 'uname -m' on any Intel Mac, it always has returned
> i386.  So all it really means is 'Intel'.
> 
> On Sep 18, 2009, at 5:53 PM, Bill Janssen wrote:
> 
> > I'm running /usr/bin/python on SL, and
> >
> >    import platform; print platform.machine()
> >
> > give me
> >
> >    i386
> >
> > But Activity Monitor shows Python as "Intel (64-bit)".
> >
> > Is this a bug in platform.machine(), or am I misunderstanding what
> > i386
> > means?  "platform.architecture()" returns ('64bit', '').

Hmmm.  So what's the pythonic way of getting i386 vs. x86_64?

 {'32bit': 'i386', '64bit': 'x86_64'}[platform.architecture()[0]]

seems so complicated that there should be a routine for it in sys or
platform.

Bill
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to