-
Notifications
You must be signed in to change notification settings - Fork 1
allow namespaces #23
Copy link
Copy link
Open
Description
the original exec comes with a handy namespace. it allows for the addition of trusted extra code
# Dictionary to store definitions from the script
script_namespace = {'myFunction': myFunction}
# Execute the script within the module's namespace
exec(script_content, script_namespace)
it would be handy to allow for extra functions to be imported within the execution context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels