[Chicago] Import Shadowing

Matthew Kemp mattkemp at gmail.com
Thu Nov 8 00:50:45 CET 2012


I believe you can still reference it with __builtins__.sum.


On Wed, Nov 7, 2012 at 4:40 PM, Oren Livne <livne at uchicago.edu> wrote:

> Dear All,
>
> ipython loads all numpy functions into the main scope, so sum() references
> np.sum(). What if I want to call the python function sum()? I can't seem to
> qualify it so that the numpy import is ignored.
>
> Thanks,
> Oren
> ______________________________**_________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/**mailman/listinfo/chicago<http://mail.python.org/mailman/listinfo/chicago>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20121107/86f1e666/attachment.html>


More information about the Chicago mailing list