title: None Type issues in Python 2.6
body: <p>I'm doing a script where I get some values from a Database but sometimes this value can be None, but when I assign it to a variable and try to compare it I get this error:</p>
  
  <pre><code>TypeError: 'NoneType' object is unsubscriptable
  </code></pre>
  
  <p>I've already tried this:</p>
  
  <pre><code>if sgSlate[ 'sg_client_2' ][ 'name' ] != None:
      self.ui.brandComboBox_2.setEditText( sgSlate[ 'sg_client_2' ]['name' ] )
  
  if not isinstanceof( sgSlate[ 'sg_client_2' ][ 'name' ], None ) != "":
      self.ui.brandComboBox_2.setEditText( sgSlate[ 'sg_client_2' ]['name' ] )
  
  if sgSlate[ 'sg_client_2' ][ 'name' ] is not None:
      self.ui.brandComboBox_2.setEditText( sgSlate[ 'sg_client_2' ]['name' ] )
  
  if type( sgSlate[ 'sg_client_2' ][ 'name' ]) is not type(None):
      self.ui.brandComboBox_2.setEditText( sgSlate[ 'sg_client_2' ]['name' ] )
  </code></pre>
  
  <p>and none of them worked.</p>
  
  <p>Thank you in advance.</p>