title: Python, can't replace generator object
body: <p>I need to change replace a string's punctuation marks with space.
  The problem is that I need to do it in one line.</p>
  
  <p>for example: there's a string: <code>'H,+-=/e^@#%ll-!!..o'</code></p>
  
  <p>the result should be : <code>'H-----e----ll-----o'</code></p>
  
  <p>where <code>'-'</code> symbolizes <code>' '</code> (space)</p>
  
  <p>when I do </p>
  
  <pre><code>replace((c for c in string.punctuation),' ')
  </code></pre>
  
  <p>I get the error: </p>
  
  <pre><code>TypeError: Can't convert 'generator' object to str implicitly
  </code></pre>
  
  <p>I tried to put it in a list, in a set even in a dict.
  but this error keeps on coming back.</p>
  
  <p>how can I surpass this?</p>