2 /* Code to handle accessing $name$ objects as sequence objects */
8 /* XXXX Return the size of the object */
12 $abbrev$_concat(self, bb)
16 /* XXXX Return the concatenation of self and bb */
20 $abbrev$_repeat(self, n)
24 /* XXXX Return a new object that is n times self */
28 $abbrev$_item(self, i)
32 /* XXXX Return the i-th object of self */
36 $abbrev$_slice(self, ilow, ihigh)
40 /* XXXX Return the ilow..ihigh slice of self in a new object */
44 $abbrev$_ass_item(self, i, v)
49 /* XXXX Assign to the i-th element of self */
54 $abbrev$_ass_slice(self, ilow, ihigh, v)
59 /* XXXX Replace ilow..ihigh slice of self with v */
63 static sequence_methods $abbrev$_as_sequence = {
64 (inquiry)$abbrev$_length, /*sq_length*/
65 (binaryfunc)$abbrev$_concat, /*sq_concat*/
66 (intargfunc)$abbrev$_repeat, /*sq_repeat*/
67 (intargfunc)$abbrev$_item, /*sq_item*/
68 (intintargfunc)$abbrev$_slice, /*sq_slice*/
69 (intobjargproc)$abbrev$_ass_item, /*sq_ass_item*/
70 (intintobjargproc)$abbrev$_ass_slice, /*sq_ass_slice*/
73 /* -------------------------------------------------------------- */