@@ -456,7 +456,7 @@ internal static PyType CreateMetatypeWithGCHandleOffset()
456
456
int size = Util . ReadInt32 ( Runtime . PyTypeType , TypeOffset . tp_basicsize )
457
457
+ IntPtr . Size // tp_clr_inst_offset
458
458
;
459
- var result = new PyType ( new TypeSpec ( "GC Offset Base " , basicSize : size ,
459
+ var result = new PyType ( new TypeSpec ( "clr._internal.GCOffsetBase " , basicSize : size ,
460
460
new TypeSpec . Slot [ ]
461
461
{
462
462
@@ -480,7 +480,7 @@ internal static PyType CreateMetaType(Type impl, out SlotsHolder slotsHolder)
480
480
481
481
PyType gcOffsetBase = CreateMetatypeWithGCHandleOffset ( ) ;
482
482
483
- PyType type = AllocateTypeObject ( "CLR Metatype " , metatype : gcOffsetBase ) ;
483
+ PyType type = AllocateTypeObject ( "CLRMetatype " , metatype : gcOffsetBase ) ;
484
484
485
485
Util . WriteRef ( type , TypeOffset . tp_base , new NewReference ( gcOffsetBase ) . Steal ( ) ) ;
486
486
@@ -509,7 +509,7 @@ internal static PyType CreateMetaType(Type impl, out SlotsHolder slotsHolder)
509
509
}
510
510
511
511
BorrowedReference dict = Util . ReadRef ( type , TypeOffset . tp_dict ) ;
512
- using ( var mod = Runtime . PyString_FromString ( "CLR " ) )
512
+ using ( var mod = Runtime . PyString_FromString ( "clr._internal " ) )
513
513
Runtime . PyDict_SetItemString ( dict , "__module__" , mod . Borrow ( ) ) ;
514
514
515
515
// The type has been modified after PyType_Ready has been called
0 commit comments