[Numpy-discussion] Optionally using Numeric in another compiled extension package.

Chris Barker Chris.Barker at noaa.gov
Wed Jan 15 11:00:05 CST 2003

Paul F Dubois wrote:
> If you could do:
> try:
>     import Numeric
>     haveNumeric = 1
> except:
>     haveNumeric = 0
> in some initialization routine, then you could use this flag.
> Alternately you could test on the fly
> 'Numeric' in [m.__name__ for m in sys.modules]

Thanks, but I'm talking about doing this at the C++ level in an
extension package, not at the Python level. This kind of thing is Soo
much easier in Python, of course!


Christopher Barker, Ph.D.
NOAA/OR&R/HAZMAT         (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