Skip to content

Commit 2c244dd

Browse files
committed
Exposed members defined after manually wrapped members, so that the latter take precedence.
1 parent ffec29a commit 2c244dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/PythonEngine.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ TPythonVersionProp = record
140140
METH_KEYWORDS = $0002;
141141
METH_CLASS = $0010;
142142
METH_STATIC = $0020;
143+
METH_COEXIST = $0040;
143144

144145
// Masks for the co_flags field of PyCodeObject
145146
CO_OPTIMIZED = $0001;
@@ -7986,10 +7987,10 @@ procedure TPythonType.SetPyObjectClass( val : TPyObjectClass );
79867987
if Assigned(val) then
79877988
begin
79887989
FType.tp_basicsize := val.InstanceSize + Sizeof(PyObject);
7989-
val.SetupType( Self );
79907990
val.RegisterMethods( Self );
79917991
val.RegisterMembers( Self );
79927992
val.RegisterGetSets( Self );
7993+
val.SetupType( Self );
79937994
end;
79947995
end;
79957996
end;

0 commit comments

Comments
 (0)