@@ -2022,9 +2022,8 @@ internal static IntPtr PyType_GenericAlloc(IntPtr type, long n)
2022
2022
2023
2023
internal static int PyObject_GenericSetAttr ( IntPtr obj , IntPtr name , IntPtr value ) => Delegates . PyObject_GenericSetAttr ( obj , name , value ) ;
2024
2024
2025
-
2026
- internal static BorrowedReference * _PyObject_GetDictPtr ( BorrowedReference obj ) => Delegates . _PyObject_GetDictPtr ( obj ) ;
2027
-
2025
+ internal static NewReference PyObject_GenericGetDict ( BorrowedReference o ) => PyObject_GenericGetDict ( o , IntPtr . Zero ) ;
2026
+ internal static NewReference PyObject_GenericGetDict ( BorrowedReference o , IntPtr context ) => Delegates . PyObject_GenericGetDict ( o , context ) ;
2028
2027
2029
2028
internal static void PyObject_GC_Del ( IntPtr tp ) => Delegates . PyObject_GC_Del ( tp ) ;
2030
2029
@@ -2472,8 +2471,8 @@ static Delegates()
2472
2471
PyType_Ready = ( delegate * unmanaged[ Cdecl] < IntPtr , int > ) GetFunctionByName ( nameof ( PyType_Ready ) , GetUnmanagedDll ( _PythonDll ) ) ;
2473
2472
_PyType_Lookup = ( delegate * unmanaged[ Cdecl] < IntPtr , IntPtr , IntPtr > ) GetFunctionByName ( nameof ( _PyType_Lookup ) , GetUnmanagedDll ( _PythonDll ) ) ;
2474
2473
PyObject_GenericGetAttr = ( delegate * unmanaged[ Cdecl] < IntPtr , IntPtr , IntPtr > ) GetFunctionByName ( nameof ( PyObject_GenericGetAttr ) , GetUnmanagedDll ( _PythonDll ) ) ;
2474
+ PyObject_GenericGetDict = ( delegate * unmanaged[ Cdecl] < BorrowedReference , IntPtr , NewReference > ) GetFunctionByName ( nameof ( PyObject_GenericGetDict ) , GetUnmanagedDll ( PythonDLL ) ) ;
2475
2475
PyObject_GenericSetAttr = ( delegate * unmanaged[ Cdecl] < IntPtr , IntPtr , IntPtr , int > ) GetFunctionByName ( nameof ( PyObject_GenericSetAttr ) , GetUnmanagedDll ( _PythonDll ) ) ;
2476
- _PyObject_GetDictPtr = ( delegate * unmanaged[ Cdecl] < BorrowedReference , BorrowedReference * > ) GetFunctionByName ( nameof ( _PyObject_GetDictPtr ) , GetUnmanagedDll ( _PythonDll ) ) ;
2477
2476
PyObject_GC_Del = ( delegate * unmanaged[ Cdecl] < IntPtr , void > ) GetFunctionByName ( nameof ( PyObject_GC_Del ) , GetUnmanagedDll ( _PythonDll ) ) ;
2478
2477
PyObject_GC_Track = ( delegate * unmanaged[ Cdecl] < IntPtr , void > ) GetFunctionByName ( nameof ( PyObject_GC_Track ) , GetUnmanagedDll ( _PythonDll ) ) ;
2479
2478
PyObject_GC_UnTrack = ( delegate * unmanaged[ Cdecl] < IntPtr , void > ) GetFunctionByName ( nameof ( PyObject_GC_UnTrack ) , GetUnmanagedDll ( _PythonDll ) ) ;
@@ -2738,7 +2737,6 @@ static Delegates()
2738
2737
internal static delegate * unmanaged[ Cdecl] < IntPtr , IntPtr , IntPtr > _PyType_Lookup { get ; }
2739
2738
internal static delegate * unmanaged[ Cdecl] < IntPtr , IntPtr , IntPtr > PyObject_GenericGetAttr { get ; }
2740
2739
internal static delegate * unmanaged[ Cdecl] < IntPtr , IntPtr , IntPtr , int > PyObject_GenericSetAttr { get ; }
2741
- internal static delegate * unmanaged[ Cdecl] < BorrowedReference , BorrowedReference * > _PyObject_GetDictPtr { get ; }
2742
2740
internal static delegate * unmanaged[ Cdecl] < IntPtr , void > PyObject_GC_Del { get ; }
2743
2741
internal static delegate * unmanaged[ Cdecl] < IntPtr , void > PyObject_GC_Track { get ; }
2744
2742
internal static delegate * unmanaged[ Cdecl] < IntPtr , void > PyObject_GC_UnTrack { get ; }
@@ -2775,6 +2773,7 @@ static Delegates()
2775
2773
internal static delegate * unmanaged[ Cdecl] < IntPtr , IntPtr , void > PyException_SetCause { get ; }
2776
2774
internal static delegate * unmanaged[ Cdecl] < uint , IntPtr , int > PyThreadState_SetAsyncExcLLP64 { get ; }
2777
2775
internal static delegate * unmanaged[ Cdecl] < ulong , IntPtr , int > PyThreadState_SetAsyncExcLP64 { get ; }
2776
+ internal static delegate * unmanaged[ Cdecl] < BorrowedReference , IntPtr , NewReference > PyObject_GenericGetDict { get ; }
2778
2777
}
2779
2778
}
2780
2779