[PYTHON MATRIX-SIG] New release of NumericPython 0.31

Perry A. Stoll stoll@atr-sw.atr.co.jp
Tue, 30 Jan 1996 00:27:44 +0900

1) Problem with: if vars(__builtins__).has_key('complex'):
    TypeError: vars() argument must have __dict__ attribute

yep, I had the same problem. The easiest way to get around this and
yet have the same functionality is to comment out the following lines
in $PYLIB/types.py:

#if vars(__builtins__).has_key('complex'):
#        ComplexType = type(complex(0,1))

And add:

        ComplexType = type(complex(0,1))

I know how  __builtins__ is becoming a dictioary instead of a module
(in Python/ceval.c), but i don't know why. Anyone? Guido?

I don't know about problem 2), although I just tried the same thing ,
namely a matrix multiply, and had got errors. Hey, what would a
prebeta be without a few some problems? :-)


MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org