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


Groups > comp.lang.python > #63511

Recover handle to shadowed builtin?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <roy@panix.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.056
X-Spam-Evidence '*H*': 0.90; '*S*': 0.01; 'builtin': 0.09; 'mode,': 0.16; 'pylab': 0.16; 'received:166.84': 0.16; 'received:166.84.1': 0.16; 'received:166.84.1.89': 0.16; 'received:24.136': 0.16; 'received:mailbackend.panix.com': 0.16; 'received:panix.com': 0.16; 'roy': 0.16; 'received:166': 0.19; '---': 0.24; 'received:24': 0.27; "i'm": 0.30; 'there': 0.35; 'charset:us- ascii': 0.36; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'header:Message-Id:1': 0.63; 'sum': 0.64; 'smith': 0.68; 'email addr:panix.com': 0.84; 'subject:handle': 0.84; 'recover': 0.91
From Roy Smith <roy@panix.com>
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding quoted-printable
Date Wed, 8 Jan 2014 14:52:10 -0500
Subject Recover handle to shadowed builtin?
To "python-list@python.org List" <python-list@python.org>
Mime-Version 1.0 (Apple Message framework v1283)
X-Mailer Apple Mail (2.1283)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5194.1389210743.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389210743 news.xs4all.nl 2837 [2001:888:2000:d::a6]:53580
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63511

Show key headers only | View raw


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()?


---
Roy Smith
roy@panix.com


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


Thread

Recover handle to shadowed builtin? Roy Smith <roy@panix.com> - 2014-01-08 14:52 -0500
  Re: Recover handle to shadowed builtin? roy@panix.com (Roy Smith) - 2014-01-08 15:15 -0500
    Re: Recover handle to shadowed builtin? Chris Angelico <rosuav@gmail.com> - 2014-01-09 09:22 +1100

csiph-web