gpython icon indicating copy to clipboard operation
gpython copied to clipboard

Instance variables

Open wilbertom opened this issue 3 years ago • 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)

wilbertom avatar Nov 19 '22 11:11 wilbertom