Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 35e45f1

Browse files
Changed the argument of Import (in VarPyth.pas) to string
1 parent b211841 commit 35e45f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Source/VarPyth.pas‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function MainModule: Variant; // return the main module that's used for executin
107107
function BuiltinModule: Variant; // return the builtin module
108108
function SysModule: Variant; // return the builtin module 'sys'
109109
function DatetimeModule: Variant; // return the builtin module 'datetime'
110-
function Import(const AModule : AnsiString ): Variant; // import a Python module and return the module object.
110+
function Import(const AModule: string): Variant; // import a Python module and return the module object.
111111
function len(const AValue : Variant ): NativeInt; // return the length of a Python collection.
112112
function _type(const AValue : Variant ): Variant; // return the type object of a Python object.
113113
function iter(const AValue : Variant ): Variant; // return an iterator for the container AValue. You can call the 'next' method of the iterator until you catch the EPyStopIteration exception.
@@ -704,7 +704,7 @@ function DatetimeModule : Variant; // return the builtin module 'datetime'
704704
Result := Import('datetime');
705705
end;
706706

707-
function Import(const AModule : AnsiString ) : Variant;
707+
function Import(const AModule: string): Variant;
708708
var
709709
_module : PPyObject;
710710
_module_name : PPyObject;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /