File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1855,6 +1855,8 @@ TPythonEngine = class(TPythonInterface)
1855
1855
procedure PyListToStrings ( list : PPyObject; strings : TStrings );
1856
1856
procedure PyTupleToStrings ( tuple: PPyObject; strings : TStrings );
1857
1857
function ReturnNone : PPyObject;
1858
+ function ReturnTrue : PPyObject;
1859
+ function ReturnFalse : PPyObject;
1858
1860
function FindModule ( const ModuleName : AnsiString ) : PPyObject;
1859
1861
function FindFunction (const ModuleName,FuncName: AnsiString): PPyObject;
1860
1862
function SetToList ( data : Pointer; size : Integer ) : PPyObject;
@@ -5682,12 +5684,24 @@ function TPythonEngine.PyUnicodeFromString(const AString : UnicodeString) : PPyO
5682
5684
{ $ENDIF}
5683
5685
end ;
5684
5686
5687
+ function TPythonEngine.ReturnFalse : PPyObject;
5688
+ begin
5689
+ Result := Py_False;
5690
+ Py_INCREF( Result );
5691
+ end ;
5692
+
5685
5693
function TPythonEngine.ReturnNone : PPyObject;
5686
5694
begin
5687
5695
Result := Py_None;
5688
5696
Py_INCREF( Result );
5689
5697
end ;
5690
5698
5699
+ function TPythonEngine.ReturnTrue : PPyObject;
5700
+ begin
5701
+ Result := Py_True;
5702
+ Py_INCREF( Result );
5703
+ end ;
5704
+
5691
5705
function TPythonEngine.FindModule ( const ModuleName : AnsiString ) : PPyObject;
5692
5706
var
5693
5707
modules, m : PPyObject;
You can’t perform that action at this time.
0 commit comments