diff --git a/py/object.go b/py/object.go index d306476..8b613aa 100644 --- a/py/object.go +++ b/py/object.go @@ -29,6 +29,11 @@ type Object struct { Unused [8]byte } +// PyObj return self +func (o *Object) PyObj() *Object { + return o +} + // llgo:link (*Object).DecRef C.Py_DecRef func (o *Object) DecRef() {}