title: Python MySQLdb / MySQL INSERT IGNORE & Checking if Ignored
body: <p>I understand that the fastest way to check if a row exists isn't even to check, but to use an INSERT IGNORE when inserting new data. This is most excellent for my application. However, I need to be able to check if the insert was ignored (or conversely, if the row was actually inserted).</p>
  
  <p>I could use a try/catch, but that's not very elegant. Was hoping that someone might have a cleaner and more elegant solution.</p>