records.Recordobject. It has these methods:
Recordobject has the
fieldmethod to get the field value. But since a
Recordobject is not an array, it does not take an index or slice, so one cannot assign a value to it. So a separate set method,
setfield(), is necessary:
>>> r.field(0) 999 >>> r.setfield(0, -1) >>> print r (-1, 'xy', 1000.0)
setfield()methods can be either an integer (index) or a string (field name).
Send comments to the NumArray community.