DataDog / go-python3

Go bindings to the CPython-3 API
MIT License
376 stars 140 forks source link

get PyObject's refcount #33

Closed christian-korneck closed 4 years ago

christian-korneck commented 4 years ago

hi go-python3 community,

I have a quick question: Is there any easy way to get a PyObject's reference count when using this library? For example is there a way to access an object's ->ob_refcnt (preferably without doing any CGo lowlevel stuff)?

Any feedback would be much appreciated (also a "no" if not possible). Thanks a lot in advance.