Skip to content

py/bind: better pythonization #2

Open
@sbinet

Description

@sbinet

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions