title: Handling errors in python
body: <p>I'm writing a small parser class for a personal project. The class will essentially parse popular playlist files and return useful information.</p>
  
  <p>Since the class will interact with files, I'm not sure about the best way to handle errors. I'm a Linux guy and generally do things in errno fashion but I'm wondering that whether exceptions are a better selection or not.</p>
  
  <p>In short what's the best way to handle these things in python world?</p>
  
  <p>Thanks in advance.</p>