mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	gh-132776: Cleanup for XIBufferViewType (gh-132821)
* add notes * rename XIBufferViewObject to xibufferview * move memoryview XIData code to memoryobject.c
This commit is contained in:
		
							parent
							
								
									c9f3f5b4ed
								
							
						
					
					
						commit
						e54e828852
					
				
					 8 changed files with 339 additions and 250 deletions
				
			
		|  | @ -14,6 +14,7 @@ | |||
| #include "pycore_global_objects_fini_generated.h"  // _PyStaticObjects_CheckRefcnt() | ||||
| #include "pycore_initconfig.h"    // _PyStatus_OK() | ||||
| #include "pycore_long.h"          // _PyLong_InitTypes() | ||||
| #include "pycore_memoryobject.h"  // _PyMemoryView_InitTypes() | ||||
| #include "pycore_object.h"        // _PyDebug_PrintTotalRefs() | ||||
| #include "pycore_obmalloc.h"      // _PyMem_init_obmalloc() | ||||
| #include "pycore_optimizer.h"     // _Py_Executors_InvalidateAll | ||||
|  | @ -754,6 +755,11 @@ pycore_init_types(PyInterpreterState *interp) | |||
|         return status; | ||||
|     } | ||||
| 
 | ||||
|     status = _PyMemoryView_InitTypes(interp); | ||||
|     if (_PyStatus_EXCEPTION(status)) { | ||||
|         return status; | ||||
|     } | ||||
| 
 | ||||
|     return _PyStatus_OK(); | ||||
| } | ||||
| 
 | ||||
|  | @ -1845,6 +1851,7 @@ finalize_interp_types(PyInterpreterState *interp) | |||
|     _PyTypes_FiniExtTypes(interp); | ||||
|     _PyUnicode_FiniTypes(interp); | ||||
|     _PySys_FiniTypes(interp); | ||||
|     _PyMemoryView_FiniTypes(interp); | ||||
|     _PyXI_FiniTypes(interp); | ||||
|     _PyExc_Fini(interp); | ||||
|     _PyFloat_FiniType(interp); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Eric Snow
						Eric Snow