![](https://secure.gravatar.com/avatar/dd9ef248138ccdba939c8c9f483fc10d.jpg?s=120&d=mm&r=g)
April 26, 2002
5:50 p.m.
[Danny Yoo]
3. Is it possible to rebind input() to it's original built-in function without restarting the whole machinery.
Although 'input' in the global environment is bound to that string now, it's still possible to fix this by going through the __builtin__ module and refix things:
###
input = 'argh' input 'argh' from __builtin__ import * input <built-in function input> ###
That's probably one way of doing it.
Here is another:
input = 'blah' input 'blah' input = __builtins__['input'] # Note the trailing 's' input <built-in function input>
--- Patrick K. O'Brien Orbtech