If one has run
from numpy import *
then the built-in all
, and several other functions, are shadowed by numpy
fun
you can just do
all = __builtins__.all
The statement from numpy import *
basically do two separate things
numpy
by re-assigning the original value from __builtins__
you can restore the situation for the functions you need.
You can correct these en masse by re-importing the builtins:
In [1]: all
Out[1]: <function all>
In [2]: from numpy import *
In [3]: all
Out[3]: <function numpy.core.fromnumeric.all>
In [4]: from __builtin__ import *
In [5]: all
Out[5]: <function all>