[PYTHON MATRIX-SIG] Numerical exception handling
Brien Barton
barton@simsg1.mdc.com
Wed, 29 May 1996 15:40:05 -0700 (PDT)
My apologies if this has already been covered. The following is a
demonstration of an error that is not handled gracefully when using array
objects:
>>> b=array([1,2,3])
>>> b.x=10
Fatal Python error: print_error called but no exception
Abort (core dumped)
Other objects, such as an integer variable, don't cause a core dump:
>>> a=5
>>> a.x=10
Traceback (innermost last):
File "<stdin>", line 1, in ?
TypeError: attribute-less object (assign or del)
===============================================================================
Brien Barton McDonnell Douglas Aerospace, Huntington Beach, CA
email: barton@simsg1.mdc.com, voice: (714)896-2249, fax:(714)896-5939
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================