Recover handle to shadowed builtin?

Dave Angel davea at davea.name
Wed Jan 8 19:02:43 EST 2014


On Wed, 8 Jan 2014 14:52:10 -0500, Roy Smith <roy at panix.com> wrote:
> I'm working with ipython's pylab mode, which replaces the builtin 
sum() with the one from numpy:

> In [105]:
> sum

> Out[105]:
> <function numpy.core.fromnumeric.sum>

> Is there any way to recover a reference to the builtin sum()?

goodsum=__builtins__.sum

-- 
DaveA




More information about the Python-list mailing list