repl(scriptURL:runAsMain:package:)¶
A REPL, optionally executing a script in its namespace first.
Declaration
Parameters
scriptURL: An optional script to run in the REPL namespace.
runAsMain: Indicates whether it should run as
__main__or as its file name.package: The parent’s package name. Used for relative imports so they work, whether running as
__main__or not.