On 9/16/10 8:12 PM, VictorMiller wrote:
Observe (using sage 4.5.2 on my mac):
sage: import numpy
sage: a = numpy.array([1,2,3])
sage: v = vector(a)
Traceback (click to the left of this block for traceback)
...
TypeError: unsupported operand type(s) for ** or pow(): 'NoneType' and
'int'
The error message is particularly weird.
The error comes because the order for testing input types is wrong (and
so it tries to construct the vector space (None)^3 instead of ZZ^3).
A patch will be up at #9928 in a few seconds fixing this.
Jason
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org