go-python/gpython

Instance variables

wilbertom opened this issue · 0 comments

Is there a way to access instance variables from Python.

For example, say I have go struct:

type Point struct {
        X int
        Y int
}

Is there a way to access struct members in python:

print(point.X)

# or
print(point.x)