[Numpy-discussion] numpy.log does not raise exceptions

2011-08-27 Thread Dominique Orban
Hi, I'm wondering why numpy.log doesn't raise a ValueError exception the way math.log does: 1< import numpy as np 2< np.log([-1]) Warning: invalid value encountered in log 2> array([ nan]) 3< import math 4< math.log(-1) ---

[Numpy-discussion] ImportError: dynamic module does not define init function (initmultiarray)

2011-08-19 Thread Dominique Orban
Dear list, I'm embedding Python inside a C program to pull functions from user-supplied Python modules. All is well except when the user-supplied module imports numpy. Requesting a stack trace when an exception occurs reveals the following: --- Traceback (most recent call last): File "/Users/dp