[Chicago] Import Shadowing

Oren Livne livne at uchicago.edu
Thu Nov 8 03:30:55 CET 2012


Thank you, Alex and Matt. Both of you are correct (I am using ipython 
--pylab).
Oren

On 11/7/2012 5:51 PM, Alex Gaynor wrote:
> 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 
> <mailto: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
>     <mailto: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 <mailto:Chicago at python.org>
>         http://mail.python.org/mailman/listinfo/chicago
>
>
>
>     _______________________________________________
>     Chicago mailing list
>     Chicago at python.org <mailto: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
>
>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago


-- 
A person is just about as big as the things that make him angry.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20121107/eada9e74/attachment-0001.html>


More information about the Chicago mailing list