2 /* Code to access $name$ objects as mappings */
8 /* XXXX Return the size of the mapping */
12 $abbrev$_subscript(self, key)
16 /* XXXX Return the item of self indexed by key */
20 $abbrev$_ass_sub(self, v, w)
24 /* XXXX Put w in self under key v */
28 static PyMappingMethods $abbrev$_as_mapping = {
29 (inquiry)$abbrev$_length, /*mp_length*/
30 (binaryfunc)$abbrev$_subscript, /*mp_subscript*/
31 (objobjargproc)$abbrev$_ass_sub, /*mp_ass_subscript*/
34 /* -------------------------------------------------------- */