go-python / go-python/gpython

Instance variables

Open
#196 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1k
Forks
105
PR merge metrics
No merged PRs in 30d

Description

Is there a way to access instance variables from Python.

For example, say I have go struct:

```go
type Point struct {
X int
Y int
}
```

Is there a way to access struct members in python:

```python
print(point.X)

# or
print(point.x)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.