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)
18551855 procedure PyListToStrings ( list : PPyObject; strings : TStrings );
18561856 procedure PyTupleToStrings ( tuple: PPyObject; strings : TStrings );
18571857 function ReturnNone : PPyObject;
1858+ function ReturnTrue : PPyObject;
1859+ function ReturnFalse : PPyObject;
18581860 function FindModule ( const ModuleName : AnsiString ) : PPyObject;
18591861 function FindFunction (const ModuleName,FuncName: AnsiString): PPyObject;
18601862 function SetToList ( data : Pointer; size : Integer ) : PPyObject;
@@ -5682,12 +5684,24 @@ function TPythonEngine.PyUnicodeFromString(const AString : UnicodeString) : PPyO
56825684{ $ENDIF}
56835685end ;
56845686
5687+ function TPythonEngine.ReturnFalse : PPyObject;
5688+ begin
5689+ Result := Py_False;
5690+ Py_INCREF( Result );
5691+ end ;
5692+
56855693function TPythonEngine.ReturnNone : PPyObject;
56865694begin
56875695 Result := Py_None;
56885696 Py_INCREF( Result );
56895697end ;
56905698
5699+ function TPythonEngine.ReturnTrue : PPyObject;
5700+ begin
5701+ Result := Py_True;
5702+ Py_INCREF( Result );
5703+ end ;
5704+
56915705function TPythonEngine.FindModule ( const ModuleName : AnsiString ) : PPyObject;
56925706var
56935707 modules, m : PPyObject;
You can’t perform that action at this time.
0 commit comments