title: How to escape a hash (#) char in python?
body: <p>I'm using pyodbc to query an AS400 (unfortunately), and some column names have hashes in them! Here is a small example:</p>
  
  <pre><code>self.cursor.execute('select LPPLNM, LPPDR# from BSYDTAD.LADWJLFU')
  
  for row in self.cursor:
      p = Patient()
      p.last = row.LPPLNM
          p.pcp = row.LPPDR#
  </code></pre>
  
  <p>I get errors like this obviously:</p>
  
  <pre><code> AttributeError: 'pyodbc.Row' object has no attribute 'LPPDR'
  </code></pre>
  
  <p>Is there some way to escape this? Seems doubtful that a hash is even allowed in a var name. I just picked up python today, so forgive me if the answer is common knowledge.</p>
  
  <p>Thanks, Pete</p>