From 8341575f18db5701830d4ab8d28b43354efb289d Mon Sep 17 00:00:00 2001 From: visualfc Date: Sun, 28 Sep 2025 11:55:57 +0800 Subject: [PATCH] py: add Object.PyObj() --- py/object.go | 5 +++++ 1 file changed, 5 insertions(+) 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() {}