[PYTHON MATRIX-SIG] Attributes vs. methods

Hinsen Konrad hinsenk@ere.umontreal.ca
Fri, 19 Jan 1996 15:36:12 -0500

   a.typecode, a.itemsize, a.contiguous should all become methods,
   because setting these values makes no sense.

They could also be read-only attributes. BTW, setting a.typecode
does make sense, as a way of casting an array to another type.
Of course this is not the recommended style.

Konrad Hinsen                     | E-Mail: hinsenk@ere.umontreal.ca
Departement de chimie             | Tel.: +1-514-343-6111 ext. 3953
Universite de Montreal            | Fax:  +1-514-343-7586
C.P. 6128, succ. Centre-Ville     | Deutsch/Esperanto/English/Nederlands/
Montreal (QC) H3C 3J7             | Francais (phase experimentale)

MATRIX-SIG  - SIG on Matrix Math for Python

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