Using function names as variables in python
<p>I had an interesting (potentially stupid) idea: What happens if I use a built-in function name as a variable to assign some object (say integer). Here's what I tried:</p>

<pre><code> &gt;&gt;&gt; a = [1,2,3,4]
 &gt;&gt;&gt; len(a)
 4
 &gt;&gt;&gt; len = 1
 &gt;&gt;&gt; len(a)
 Traceback (most recent call last):
   File "&lt;stdin&gt;", line 1, in ?
 TypeError: 'int' object is not callable
</code></pre>

<p>Seems like python does not treat function and variable names differently. Without restarting the python interpreter, is there a way to assign <code>len</code> back to the function? Or undo the assignment <code>len = 1</code>?</p>
