| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* Code to handle accessing $name$ objects as sequence objects */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_length($abbrev$object *self) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Return the size of the object */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-05-16 13:47:03 +00:00
										 |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_concat($abbrev$object *self, PyObject *bb) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Return the concatenation of self and bb */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-05-16 13:47:03 +00:00
										 |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_repeat($abbrev$object *self, int n) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Return a new object that is n times self */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-05-16 13:47:03 +00:00
										 |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_item($abbrev$object *self, int i) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Return the i-th object of self */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-05-16 13:47:03 +00:00
										 |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_slice($abbrev$object *self, int ilow, int ihigh) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Return the ilow..ihigh slice of self in a new object */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_ass_item($abbrev$object *self, int i, PyObject *v) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Assign to the i-th element of self */ | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_ass_slice(PyListObject *self, int ilow, int ihigh, PyObject *v) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Replace ilow..ihigh slice of self with v */ | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-05-16 13:47:03 +00:00
										 |  |  | static PySequenceMethods $abbrev$_as_sequence = { | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | 	(inquiry)$abbrev$_length,		/*sq_length*/ | 
					
						
							|  |  |  | 	(binaryfunc)$abbrev$_concat,		/*sq_concat*/ | 
					
						
							|  |  |  | 	(intargfunc)$abbrev$_repeat,		/*sq_repeat*/ | 
					
						
							|  |  |  | 	(intargfunc)$abbrev$_item,		/*sq_item*/ | 
					
						
							|  |  |  | 	(intintargfunc)$abbrev$_slice,		/*sq_slice*/ | 
					
						
							|  |  |  | 	(intobjargproc)$abbrev$_ass_item,	/*sq_ass_item*/ | 
					
						
							|  |  |  | 	(intintobjargproc)$abbrev$_ass_slice,	/*sq_ass_slice*/ | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* -------------------------------------------------------------- */ |