Skip to content

Instantly share code, notes, and snippets.

@jdsiddon
Last active September 10, 2025 16:51
Show Gist options
  • Select an option

  • Save jdsiddon/5e670554f0aaf2528100e83341c24fd4 to your computer and use it in GitHub Desktop.

Select an option

Save jdsiddon/5e670554f0aaf2528100e83341c24fd4 to your computer and use it in GitHub Desktop.
regex = 'parameter_1'
def serialize_function(func):
pass
def foo():
user_function = '' \
'test_to_print = \'HELLO WORLD\' \n' \
'print(test_to_print)' \
''
return user_function
def main():
message = foo()
exec(message)
print("start print function")
print("---", message, "---")
print("end print function")
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment