Skip to content

Instantly share code, notes, and snippets.

@klanjabrik
Last active December 17, 2015 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klanjabrik/5590908 to your computer and use it in GitHub Desktop.
Save klanjabrik/5590908 to your computer and use it in GitHub Desktop.
Python: Calling method without threading
tampil = """{"data1":"Ini Data 1","data2":"Ini Data 2"""
class TestClass():
def run(self):
tampil_class = """","data3":"Ini Data 3"}"""
return tampil_class
t = TestClass()
tampil_class = t.run()
tampil += tampil_class
print eval(tampil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment