Skip to content

Commit 189fb29

Browse files
committed
Fix #493
1 parent eac8094 commit 189fb29

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Source/PythonEngine.pas

+9-1
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ TPythonVersionProp = record
538538
{#define PyDescr_COMMON \
539539
PyObject_HEAD \
540540
PyTypeObject *d_type; \
541-
PyObject *d_name
541+
PyObject *d_name \
542+
PyObject *d_qualname
542543
}
543544

544545
PPyDescrObject = ^PyDescrObject;
@@ -549,6 +550,7 @@ TPythonVersionProp = record
549550
// End of the Head of an object
550551
d_type : PPyTypeObject;
551552
d_name : PPyObject;
553+
d_qualname : PPyObject;
552554
end;
553555

554556
PPyMethodDescrObject = ^PyMethodDescrObject;
@@ -560,6 +562,7 @@ TPythonVersionProp = record
560562
// End of the Head of an object
561563
d_type : PPyTypeObject;
562564
d_name : PPyObject;
565+
d_qualname : PPyObject;
563566
// End of PyDescr_COMMON
564567
d_method : PPyMethodDef;
565568
end;
@@ -573,6 +576,7 @@ TPythonVersionProp = record
573576
// End of the Head of an object
574577
d_type : PPyTypeObject;
575578
d_name : PPyObject;
579+
d_qualname : PPyObject;
576580
// End of PyDescr_COMMON
577581
d_member : PPyMemberDef;
578582
end;
@@ -586,6 +590,7 @@ TPythonVersionProp = record
586590
// End of the Head of an object
587591
d_type : PPyTypeObject;
588592
d_name : PPyObject;
593+
d_qualname : PPyObject;
589594
// End of PyDescr_COMMON
590595
d_getset : PPyGetSetDef;
591596
end;
@@ -599,6 +604,7 @@ TPythonVersionProp = record
599604
// End of the Head of an object
600605
d_type : PPyTypeObject;
601606
d_name : PPyObject;
607+
d_qualname : PPyObject;
602608
// End of PyDescr_COMMON
603609
d_base : pwrapperbase;
604610
d_wrapped : Pointer; // This can be any function pointer
@@ -1513,6 +1519,7 @@ TPythonInterface=class(TDynamicDll)
15131519
PySuper_Type: PPyTypeObject;
15141520
PyTraceBack_Type: PPyTypeObject;
15151521
PyUnicode_Type: PPyTypeObject;
1522+
PyGetSetDescr_Type: PPyTypeObject;
15161523
PyWrapperDescr_Type: PPyTypeObject;
15171524
_PyWeakref_RefType: PPyTypeObject;
15181525
_PyWeakref_ProxyType: PPyTypeObject;
@@ -3859,6 +3866,7 @@ procedure TPythonInterface.MapDll;
38593866
PyStaticMethod_Type := Import('PyStaticMethod_Type');
38603867
PySuper_Type := Import('PySuper_Type');
38613868
PyTraceBack_Type := Import('PyTraceBack_Type');
3869+
PyGetSetDescr_Type := Import('PyGetSetDescr_Type');
38623870
PyWrapperDescr_Type := Import('PyWrapperDescr_Type');
38633871
_PyWeakref_RefType := Import('_PyWeakref_RefType');
38643872
_PyWeakref_ProxyType := Import('_PyWeakref_ProxyType');

0 commit comments

Comments
 (0)