| 
									
										
										
										
											1995-05-16 13:47:03 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | /* Code to access $name$ objects as mappings */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 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 mapping */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-05-16 13:47:03 +00:00
										 |  |  | static PyObject * | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_subscript($abbrev$object *self, PyObject *key) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Return the item of self indexed by key */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | static int | 
					
						
							| 
									
										
										
										
											2001-12-27 23:35:43 +00:00
										 |  |  | $abbrev$_ass_sub($abbrev$object *self, PyObject *v, PyObject *w) | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  | 	/* XXXX Put w in self under key v */ | 
					
						
							|  |  |  | 	return 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1995-05-16 13:47:03 +00:00
										 |  |  | static PyMappingMethods $abbrev$_as_mapping = { | 
					
						
							| 
									
										
										
										
											1995-03-02 14:05:29 +00:00
										 |  |  | 	(inquiry)$abbrev$_length,		/*mp_length*/ | 
					
						
							|  |  |  | 	(binaryfunc)$abbrev$_subscript,		/*mp_subscript*/ | 
					
						
							|  |  |  | 	(objobjargproc)$abbrev$_ass_sub,	/*mp_ass_subscript*/ | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* -------------------------------------------------------- */ |