feat(py): Add Python tuple constructor helper

This commit is contained in:
AN Long
2024-08-14 21:39:20 +08:00
parent 9f1100b967
commit bbeceae42e
5 changed files with 62 additions and 2 deletions

View File

@@ -22,6 +22,9 @@ import (
// https://docs.python.org/3/c-api/tuple.html
//go:linkname Tuple llgo.pyTuple
func Tuple(__llgo_va_list ...any) *Object
// Return a new tuple object of size len, or nil on failure.
//
//go:linkname NewTuple C.PyTuple_New