[Numpy-discussion] Lazy imports again

Chris Barker chris.barker at noaa.gov
Tue Jul 17 13:36:17 EDT 2012


On Mon, Jul 16, 2012 at 8:37 PM, Travis Oliphant <travis at continuum.io> wrote:
>--- systems that try to "freeze" Python programs were
> particularly annoyed at SciPy's lazy import mechanism.

That's ironic to me -- while the solution to a lot of "freezing"
problems is to include everything including the kitchen sink -- I
really hate having to do that. With lazy imports, you *may* have to
hand-include some stuff (or the while package -- that's actually
pretty easy), but without lazy importing you *have* to include
everything -- worse, as far as I'm concerned.

In fact, bumpy aside, I've occasionally needed a tiny module from
scipy for an I"m Im bundling, and I've ended up having to hack away at
scipy to pull out what I needed without getting all sorts of stuff I
didn't need.

So I vote for lazy imports in Scipy too!

-Chris

-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list