Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/goplus/py
/ functions
Functions
233 in github.com/goplus/py
⨍
Functions
233
◇
Types & classes
30
↓ 170 callers
Method
c
()
object.go:28
↓ 51 callers
Method
Decref
Decref decrements obj's reference count, obj may not be nil.
object.go:50
↓ 50 callers
Function
newException
(obj *C.PyObject)
exception.go:12
↓ 48 callers
Function
obj2ObjErr
(obj *C.PyObject)
error.go:153
↓ 31 callers
Method
String
()
object.go:205
↓ 31 callers
Function
cnp
(n *NumberProtocol)
number.go:16
↓ 27 callers
Function
exception
()
error.go:121
↓ 20 callers
Method
Obj
()
object.go:32
↓ 15 callers
Function
int2Err
(i C.int)
error.go:146
↓ 13 callers
Function
newObject
(obj *C.PyObject)
object.go:24
↓ 7 callers
Function
NewString
(s string)
string.go:20
↓ 6 callers
Function
NewDict
NewDict creates a new empty dictionary. Return value: New Reference.
dict.go:27
↓ 5 callers
Function
AssignTo
(in *Base, out interface{})
goargs.go:105
↓ 5 callers
Method
New
(args *Tuple, kw *Dict)
type.go:43
↓ 5 callers
Function
NewVar
(val interface{})
pyutil/var.go:109
↓ 5 callers
Function
NewVarEx
------------------------------------------------------------------------------------------
pyutil/var.go:96
↓ 5 callers
Function
PackTuple
PackTuple returns a new *Tuple which contains the arguments. This tuple is ready to use. Return value: New Reference.
tuple.go:43
↓ 4 callers
Function
Compile
(text, filename string, start StartToken)
code.go:62
↓ 4 callers
Method
Err
Err returns a new Error of the specified kind, and with the value being a new String containing the string created the given format and args.
exception.go:23
↓ 4 callers
Method
Incref
Incref increments obj's reference count, obj may not be nil.
object.go:55
↓ 4 callers
Function
PackEx
------------------------------------------------------------------------------------------
pyutil/call.go:11
↓ 4 callers
Method
Size
* // Items returns a *List containing all the items from the dictionary d, as with // the Python "d.items()". // // Return value: New Reference. func
dict.go:159
↓ 4 callers
Function
int2BoolErr
(i C.int)
error.go:139
↓ 4 callers
Function
newDict
(obj *C.PyObject)
dict.go:20
↓ 4 callers
Function
newModule
(obj *C.PyObject)
module.go:18
↓ 4 callers
Function
newTuple
(obj *C.PyObject)
tuple.go:18
↓ 3 callers
Function
AsString
(o *Base)
string.go:27
↓ 3 callers
Method
GetAttrString
Retrieve an attribute named attr_name from object o. Returns the attribute value on success, or NULL on failure. This is the equivalent to the Python
object.go:114
↓ 3 callers
Method
GetItem
GetItem returns the Object from dictionary d which has the key "key". If there is no such Object, then nil is returned (without an error). Return va
dict.go:111
↓ 3 callers
Method
GetItemString
GetItemString returns the Object from dictionary d which has the key "key" (or rather, which has a *String with the value of "key" as the key). If th
dict.go:121
↓ 3 callers
Function
IncNone
------------------------------------------------------------------------------------------
none.go:12
↓ 3 callers
Method
Int
()
int.go:40
↓ 3 callers
Function
NewInt
(i int)
int.go:25
↓ 3 callers
Function
ToLong
(in *Base)
goargs.go:18
↓ 3 callers
Method
Type
Type returns a pointer to the Type that represents the type of this object in Python.
object.go:44
↓ 3 callers
Function
newCode
(obj *C.PyObject)
code.go:51
↓ 3 callers
Function
newError
(kind, val *Base, tb *C.PyObject)
error.go:23
↓ 3 callers
Function
newFloat
(obj *C.PyObject)
float.go:17
↓ 3 callers
Function
newInt
(obj *C.PyObject)
int.go:21
↓ 3 callers
Function
newString
(obj *C.PyObject)
string.go:16
↓ 2 callers
Method
Call
Call calls obj with the given args and kwds. kwds may be nil, args may not (an empty Tuple must be used if no arguments are wanted). Returns the res
object.go:252
↓ 2 callers
Method
CallMethodObject
(name string, args *Tuple)
object.go:271
↓ 2 callers
Method
CallObject
CallObject calls obj with the given args. args may be nil. Returns the result of the call, or an Error on failure. This is equivalent to "obj(*args
object.go:262
↓ 2 callers
Method
Dict
Return value: Borrowed reference.
module.go:71
↓ 2 callers
Function
ExecCodeModule
(name string, code *Base)
module.go:37
↓ 2 callers
Method
Long
()
long.go:32
↓ 2 callers
Method
New
Return value: New reference. Create a new instance of a specific class. The parameters arg and kw are used as the positional and keyword parameters to
class.go:36
↓ 2 callers
Function
NewInstanceEx
------------------------------------------------------------------------------------------
pyutil/call.go:72
↓ 2 callers
Function
NewTuple
NewTuple returns a new *Tuple of the specified size. However the entries are all set to NULL, so the tuple should not be shared, especially with Pyth
tuple.go:27
↓ 2 callers
Method
Next
Iterate over all key-value pairs in the dictionary d. The Py_ssize_t referred to by ppos must be initialized to 0 prior to the first call to this func
dict.go:249
↓ 2 callers
Function
Raise
(err error)
error.go:96
↓ 2 callers
Function
Register
只是让对象不被gc
goregister.go:45
↓ 2 callers
Method
SetItem
SetItem inserts "val" into dictionary d with the key "key". If "key" is not hashable, then a TypeError will be returned.
dict.go:76
↓ 2 callers
Method
SetItemString
SetItemString inserts "val" into dictionary d with the key "key" (or rather, with a *String with the value of "key" will be used as the key). If "key
dict.go:84
↓ 2 callers
Function
ToString
(in *Base)
goargs.go:29
↓ 2 callers
Function
checkFoo
(val *py.Dict, t *testing.T)
pyutil/var_test.go:68
↓ 2 callers
Function
newLong
(obj *C.PyObject)
long.go:17
↓ 2 callers
Function
newType
(obj *C.PyObject)
type.go:26
↓ 2 callers
Function
sigMatches
------------------------------------------------------------------------------------------ Note: Methods take the receiver as the first argument, whic
goregister.go:11
↓ 1 callers
Function
AsDict
(o *Base)
dict.go:37
↓ 1 callers
Function
AsInt
(o *Base)
int.go:33
↓ 1 callers
Function
AsLong
(o *Base)
long.go:25
↓ 1 callers
Function
CallEx
------------------------------------------------------------------------------------------
pyutil/call.go:34
↓ 1 callers
Function
CallMethod
(self *py.Base, method string, args ...interface{})
pyutil/call.go:65
↓ 1 callers
Function
CallMethodEx
------------------------------------------------------------------------------------------
pyutil/call.go:53
↓ 1 callers
Method
CallMethodObjArgs
(name string, args ...*Base)
object.go:295
↓ 1 callers
Method
Eval
Return value: New reference.
code.go:94
↓ 1 callers
Function
Finalize
()
python.go:35
↓ 1 callers
Method
GetItem
Return the object at position pos in the tuple pointed to by p. If pos is out of bounds, return NULL and sets an IndexError exception. Return value:
tuple.go:88
↓ 1 callers
Method
HasFeature
HasFeature returns true when "t" has the feature in question.
type.go:82
↓ 1 callers
Function
Initialize
()
python.go:23
↓ 1 callers
Function
New
(mod *py.Base, clsname string, args ...interface{})
pyutil/call.go:109
↓ 1 callers
Function
NewError
NewError returns a new Error of the specified kind, and with the value being a new String containing the string created the given format and args.
error.go:89
↓ 1 callers
Function
NewErrorV
NewErrorV returns a new Error of the specified kind, and with the given value.
error.go:81
↓ 1 callers
Function
NewEx
------------------------------------------------------------------------------------------
pyutil/call.go:91
↓ 1 callers
Method
NewFunction
(name string, nin int, doc string)
gofunction.go:19
↓ 1 callers
Function
NewGoModule
(name string, doc string, self interface{})
gomodule.go:15
↓ 1 callers
Function
ParseV
(in *Tuple, out ...interface{})
goargs.go:152
↓ 1 callers
Method
Run
(globals, locals *Base)
code.go:100
↓ 1 callers
Method
SetItem
Insert a reference to object o at position pos of the tuple pointed to by p. Return 0 on success. Note This function “steals” a reference to o.
tuple.go:103
↓ 1 callers
Method
Size
()
tuple.go:76
↓ 1 callers
Function
ToInt
------------------------------------------------------------------------------------------
goargs.go:12
↓ 1 callers
Function
ToInterface
(in *Base)
goargs.go:37
↓ 1 callers
Function
assignToComplex
(in *Base, out1 reflect.Value)
goargs.go:87
↓ 1 callers
Function
assignToMap
------------------------------------------------------------------------------------------
goargs.go:49
↓ 1 callers
Function
newClass
(obj *C.PyObject)
class.go:16
↓ 1 callers
Function
newComplex
(val reflect.Value, cfg *Config)
pyutil/var.go:79
↓ 1 callers
Function
newMap
(v reflect.Value, cfg *Config)
pyutil/var.go:54
↓ 1 callers
Function
newStruct
(sv reflect.Value, cfg *Config)
pyutil/var.go:29
↓ 1 callers
Function
tagName
------------------------------------------------------------------------------------------
pyutil/var.go:22
Method
Absolute
Absolute returns the absolute value of n. The equivalent Python is "abs(n)". Return value: New Reference.
number.go:116
Method
Add
Add returns the result of adding n and obj. The equivalent Python is "n + obj". Return value: New Reference.
number.go:24
Method
AddIntConstant
(name string, value int)
module.go:110
Method
AddObject
(name string, obj *Base)
module.go:94
Method
AddStringConstant
(name, value string)
module.go:122
Function
AddToPath
(dir string)
python.go:39
Method
Alloc
(n int64)
type.go:54
Method
And
And returns the bitwise and of n and obj. The equivalent Python is "n & obj". Return value: New Reference.
number.go:151
Function
AsClass
(o *Base)
class.go:20
Function
AsCode
(o *Base)
code.go:55
next →
1–100 of 233, ranked by callers