Commit 1990169c authored by Lucas Bourneuf's avatar Lucas Bourneuf

pretty printing of Scripts for debug

parent c21e8a76
......@@ -90,6 +90,9 @@ class Script:
def call(script, context:str, *args, **kwargs):
return call_script(script, context, *args, **kwargs)
def __str__(self):
return f"<Script language={self.language} code={bool(self.source_code)} #lines={len((self.source_code or '').splitlines())} erase={self.erase_context}>"
class Module:
"""Placeholder for a module/namespace.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment