[Chicago] Import Shadowing

Alex Gaynor alex.gaynor at gmail.com
Thu Nov 8 00:51:37 CET 2012


FWIW this definitely isn't the default ipython behavior.

Alex


On Wed, Nov 7, 2012 at 3:50 PM, Matthew Kemp <mattkemp at gmail.com> wrote:

> 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>
>>
>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>
>


-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20121107/347d76b3/attachment.html>


More information about the Chicago mailing list