:orphan: .. _s_11PytoRuntime6ScriptO4replyAC10Foundation3URLVSg_SbSSSgtcACmF: ``repl(scriptURL:runAsMain:package:)`` ====================================== A REPL, optionally executing a script in its namespace first. .. raw:: html .. rubric:: Declaration .. raw:: html
case repl(
       scriptURL: URL? = nil,
       runAsMain: Bool = true,
       package: String? = nil
   )
   
.. rubric:: 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.