I doing some work inside the Python REPL and I redefined one of the primitive callable's.
i.e list = []
will prevent tuple = list((1,2,3))
from working anymore.
Aside from restarting the REPL is there a way to 'recover' or reassign list to its default value?
Maybe there is an import or a super class? Or would it be forever lost and stuck with what I assigned it until I restart the REPL?
You can delete the name
del list
Or
list = builtins.list
for python3:For python 2: