2 /* Code to access $name$ objects as mappings */
5 $abbrev$_length($abbrev$object *self)
7 /* XXXX Return the size of the mapping */
11 $abbrev$_subscript($abbrev$object *self, PyObject *key)
13 /* XXXX Return the item of self indexed by key */
17 $abbrev$_ass_sub($abbrev$object *self, PyObject *v, PyObject *w)
19 /* XXXX Put w in self under key v */
23 static PyMappingMethods $abbrev$_as_mapping = {
24 (inquiry)$abbrev$_length, /*mp_length*/
25 (binaryfunc)$abbrev$_subscript, /*mp_subscript*/
26 (objobjargproc)$abbrev$_ass_sub, /*mp_ass_subscript*/
29 /* -------------------------------------------------------- */