title: Python AttributeError: 'module' object has no attribute 'atoi'
body: <p>I tried to run following program of using python 3.2 , there is error:
   'module' object has no attribute 'atoi'
   Can anybody tell me what should I do to fix this?
  i really appreciate it !</p>
  
  <pre><code>import string
  def converttoint(str):
      try:
          value = string.atoi(str)
          return value
      except ValueError:
          return None
  </code></pre>