What does this code do in Python?
<p>I'm learning Python and ran into some code that has this line...</p>

<pre><code>self.clear()
</code></pre>

<p>I am curious as to what it would do and why would someone need to do this?</p>
