head	1.1;
access;
symbols;
locks
	amk:1.1; strict;
comment	@# @;


1.1
date	96.06.20.21.31.23;	author amk;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@/* Code to access $name$ objects as mappings */

static int
$abbrev$_length($abbrev$Object *self)
{
	/* XXXX Return the size of the mapping */
#ifdef $abbrev$_length_impl
	$abbrev$_length_impl(self)
#else
	return $abbrev$_length_(self);
#endif
}

static PyObject *
$abbrev$_subscript($abbrev$Object *self, PyObject *key)
{
	/* XXXX Return the item of self indexed by key */
#ifdef $abbrev$_subscript_impl
	$abbrev$_subscript_impl(self, key)
#else
	return $abbrev$_subscript_(self, key);
#endif
}

static int
$abbrev$_ass_sub($abbrev$Object *self, PyObject *v, PyObject *w)
{
	/* XXXX Put w in self under key v */
#ifdef $abbrev$_ass_sub_impl
	$abbrev$_ass_sub_impl(self, v, w)
#else
	return $abbrev$_ass_sub_(self, v, w);
#endif
}

/* -------------------------------------------------------- */
@
