[Chicago] Import Shadowing
alex.gaynor at gmail.com
Thu Nov 8 00:51:37 CET 2012
FWIW this definitely isn't the default ipython behavior.
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.
>> Chicago mailing list
>> Chicago at python.org
> Chicago mailing list
> Chicago at python.org
"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...
More information about the Chicago