DataDog / go-python3

Go bindings to the CPython-3 API
MIT License
376 stars 140 forks source link

Error / Stacktrace when python module fails #25

Closed lsgroup closed 4 years ago

lsgroup commented 4 years ago

Describe what happened: an error with the python script that cannot be caught - like a SyntaxError

Describe what you expected: meaningful error reported in go

Steps to reproduce the issue: run a python module with improper indenting

hush-hush commented 4 years ago

Hi @lsgroup,

This binding is a very low level one which mimic the CPython API. So you have to use the function available in CPython for error handling (which this repo bind to Go). But the wrapper won't handle error in itself.

Feel free to reopen this issue or another one if needed.