Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py/bind: better pythonization #2

Open
sbinet opened this issue Jan 30, 2015 · 0 comments
Open

py/bind: better pythonization #2

sbinet opened this issue Jan 30, 2015 · 0 comments
Assignees

Comments

@sbinet
Copy link
Member

sbinet commented Jan 30, 2015

go functions returning an error such as:

func Get() (int, error) {
  return 42, nil
}

should be wrapped as:

def get():
  return 42

where a python Exception is raised if the go error is non-nil.

@sbinet sbinet self-assigned this Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant