title: Use string formatting in Jython
body: <p>I am new in Jython.. I want to use the string formatting <code>str.format()</code> in Jython (<a href="http://www.jython.org/docs/library/string.html" rel="nofollow">look here</a>).</p>
  
  <p>If I try to use it like this:</p>
  
  <pre><code>testText = 'This is a {word}'
  </code></pre>
  
  <p>and later on</p>
  
  <pre><code>str.format(testText, word='test!')
  </code></pre>
  
  <p>the exception text is:</p>
  
  <pre><code>Error: exceptions.AttributeError instance of 'org.python.core.PyReflectedFunction' has no attribute 'format'
  </code></pre>
  
  <p>What do I have to add in the imports/classpath or anywhere?! </p>
  
  <p>Thanks for your help!!</p>
  
  <p>Kind regards</p>