title: Python inline elif possible?
body: <pre><code>'Hello ' + ('there' if name is None else name)
  </code></pre>
  
  <p>Is the equivalent of </p>
  
  <pre><code>msg = 'Hello '
  if name is None:
      msg += 'there'
  else:
      msg += name
  </code></pre>
  
  <p>What is the equivalent of this:</p>
  
  <pre><code>msg = 'Hello '
  if name is None:
      msg += 'there'
  elif name == 'Mr Anderson'
      msg += 'Neo'
  else:
      msg += name
  </code></pre>
  
  <p><strong>EDIT: for reference here is the code I wanted to shrink</strong></p>
  
  <pre><code>srepr = '\'Modify '
  if self.register == 'p':
      srepr += 'Pointer'
  elif self.register == 'v':
      srepr += 'Value'
  else
      srepr += 'Unknown'
  srepr += ' By ' + str(self.delta) + '\''
  </code></pre>