mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	gh-91102: Use Argument Clinic for EncodingMap (#31725)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
		
							parent
							
								
									dbd9d75fed
								
							
						
					
					
						commit
						2f0fc521f4
					
				
					 3 changed files with 43 additions and 48 deletions
				
			
		
							
								
								
									
										20
									
								
								Objects/clinic/unicodeobject.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										20
									
								
								Objects/clinic/unicodeobject.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -2,6 +2,24 @@ | |||
| preserve | ||||
| [clinic start generated code]*/ | ||||
| 
 | ||||
| PyDoc_STRVAR(EncodingMap_size__doc__, | ||||
| "size($self, /)\n" | ||||
| "--\n" | ||||
| "\n" | ||||
| "Return the size (in bytes) of this object."); | ||||
| 
 | ||||
| #define ENCODINGMAP_SIZE_METHODDEF    \ | ||||
|     {"size", (PyCFunction)EncodingMap_size, METH_NOARGS, EncodingMap_size__doc__}, | ||||
| 
 | ||||
| static PyObject * | ||||
| EncodingMap_size_impl(struct encoding_map *self); | ||||
| 
 | ||||
| static PyObject * | ||||
| EncodingMap_size(struct encoding_map *self, PyObject *Py_UNUSED(ignored)) | ||||
| { | ||||
|     return EncodingMap_size_impl(self); | ||||
| } | ||||
| 
 | ||||
| PyDoc_STRVAR(unicode_title__doc__, | ||||
| "title($self, /)\n" | ||||
| "--\n" | ||||
|  | @ -1335,4 +1353,4 @@ skip_optional_pos: | |||
| exit: | ||||
|     return return_value; | ||||
| } | ||||
| /*[clinic end generated code: output=c494bed46209961d input=a9049054013a1b77]*/ | ||||
| /*[clinic end generated code: output=e8566b060f558f72 input=a9049054013a1b77]*/ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Oleg Iarygin
						Oleg Iarygin