@@ -18,7 +18,7 @@ TPyStringList = class(TPyObject)
1818 public
1919 // Constructors & Destructors
2020 constructor Create( APythonType : TPythonType ); override;
21- constructor CreateWith(PythonType: TPythonType; args: PPyObject); override;
21+ constructor CreateWith(PythonType: TPythonType; args, kwds : PPyObject); override;
2222 destructor Destroy; override;
2323
2424 // Basic services
@@ -46,7 +46,7 @@ TPyStringListIterator = class(TPyObject)
4646 procedure SetStringList (const Value : TPyStringList);
4747 public
4848 constructor Create( APythonType : TPythonType ); override;
49- constructor CreateWith(PythonType: TPythonType; args: PPyObject); override;
49+ constructor CreateWith(PythonType: TPythonType; args, kwds : PPyObject); override;
5050 destructor Destroy; override;
5151
5252 // Basic services
@@ -145,11 +145,11 @@ constructor TPyStringList.Create(APythonType: TPythonType);
145145 fStrings := TStringList.Create;
146146end ;
147147
148- constructor TPyStringList.CreateWith(PythonType: TPythonType; args: PPyObject);
148+ constructor TPyStringList.CreateWith(PythonType: TPythonType; args, kwds : PPyObject);
149149var
150150 i : Integer;
151151begin
152- inherited ;
152+ Create(PythonType) ;
153153 with GetPythonEngine do
154154 begin
155155 for i := 0 to PyTuple_Size(args)-1 do
@@ -241,12 +241,12 @@ constructor TPyStringListIterator.Create(APythonType: TPythonType);
241241 inherited ;
242242end ;
243243
244- constructor TPyStringListIterator.CreateWith(PythonType: TPythonType; args: PPyObject);
244+ constructor TPyStringListIterator.CreateWith(PythonType: TPythonType; args, kwds : PPyObject);
245245var
246246 _obj : PPyObject;
247247 _stringList : TPyStringList;
248248begin
249- inherited ;
249+ Create(PythonType) ;
250250 with GetPythonEngine do
251251 begin
252252 if PyArg_ParseTuple( args, ' O:TPyStringListIterator constructor' ,@_obj ) <> 0 then
0 commit comments