Zhéyuán Chén

Results 5 comments of Zhéyuán Chén

You can do this. ```python from PythonInterface import Python builtins = Python.import_module("builtins") f = builtins.open("text.txt") builtins.print(f.read()) f.close() ```

@JanzenJohn No well defined interface yet. But this seems working for now ```python from PythonInterface import Python builtins = Python.import_module("builtins") f = builtins.open("text.txt") s = f.read() f.close() let p =...

Maybe also `_1`, `_2` and etc. Here are some examples: https://stackoverflow.com/questions/200020/get-last-result-in-interactive-python-shell

Unfortunately you need to do something like this at this point ```py let py = Python.import_module("builtins") py.print(py.type) # ```

I had the same problem. So I cloned a similar app: https://github.com/czheo/macopilot