title: How to access Mac-specific file metadata?
body: <p>According to this page, different operating systems can return different information from the os.stat function.</p>
  
  <p><a href="http://docs.python.org/2/library/os.html" rel="nofollow">http://docs.python.org/2/library/os.html</a></p>
  
  <p>I am interested in getting the type and creator.</p>
  
  <pre><code>import os
  from stat import *
  print(os.stat('filename').st_ino)
  print(os.stat('filename').st_creator)
  </code></pre>
  
  <p>This code works for the inode (st_ino) but gives an error for the creator:</p>
  
  <blockquote>
    <p>AttributeError: 'posix.stat_result' object has no attribute 'st_creator'</p>
  </blockquote>
  
  <p>Same for st_type and st_rsize.</p>
  
  <p>Do I have to do anything special to get these to work?</p>
  
  <p>(This is Mac OS X 10.5 and 10.8 with Python 2. I'm new to Python.)</p>