title: How to check if a library is 32bit/64bit built on Mac OS X?
body: <p>I'm having some trouble in using PyQt/SIP.  I guess the SIP is compiled into 64bit, but Python has some problem with finding it. </p>
  
  <pre>
    File "qtdemo.py", line 46, in 
      import sip
  ImportError: dlopen(/Library/Python/2.6/site-packages/sip.so, 2): no suitable image found.  Did find:
          /Library/Python/2.6/site-packages/sip.so: mach-o, but wrong architecture
  </pre>
  
  <ul>
  <li>How do I know if a library (so/dylib) is 32bit or 64bit?</li>
  <li>How do I know if my Python is 32bit or 64bit?</li>
  </ul>