title: Format align using a variable?
body: <p>I'm trying to right align some text, with a variable alignment.</p>
  
  <p>For instance this works:</p>
  
  <pre><code>&gt;&gt;&gt; print '{:&gt;10}'.format('foo')
         foo
  </code></pre>
  
  <p>But this does not:</p>
  
  <pre><code>&gt;&gt;&gt; x = 10
  &gt;&gt;&gt; print '{:&gt;x}'.format('foo')
  </code></pre>