Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63542

Re: Recover handle to shadowed builtin?

From Dave Angel <davea@davea.name>
Subject Re: Recover handle to shadowed builtin?
Date 2014-01-08 19:02 -0500
References <9D7A8CB8-A028-4DB0-A026-98BA4FF8124C@panix.com> <9D7A8CB8-A028-4DB0-A026-98BA4FF8124C@panix.com>
Newsgroups comp.lang.python
Message-ID <mailman.5213.1389225667.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, 8 Jan 2014 14:52:10 -0500, Roy Smith <roy@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Recover handle to shadowed builtin? Dave Angel <davea@davea.name> - 2014-01-08 19:02 -0500

csiph-web