title: Any push back like function in python?
body: <p>Sorry guys!!! pardon me. I'm a beginner in Python. I am writing the following code:</p>
  
  <pre><code>for line in file:
   if StartingMarker in line:
    # Here: I want to push back 'line' back in 'file'
      for nextline in file:
       if EndingMarker in line:
          # Do some Operation
  print "Done"
  </code></pre>
  
  <p>How can I push 'line' back in 'file'?</p>
  
  <p>Thanks in Advance.</p>