title: Size of an open file object
body: <p>Is there a way to find the size of a file object that is currently open?</p>
  
  <p>Specifically, I am working with the tarfile module to create tarfiles, but I don't want my tarfile to exceed a certain size.  As far as I know, tarfile objects are file-like objects, so I imagine a generic solution would work.</p>