MCPcopy Create free account

hub / github.com/goplus/py / functions

Functions233 in github.com/goplus/py

↓ 170 callersMethodc
()
object.go:28
↓ 51 callersMethodDecref
Decref decrements obj's reference count, obj may not be nil.
object.go:50
↓ 50 callersFunctionnewException
(obj *C.PyObject)
exception.go:12
↓ 48 callersFunctionobj2ObjErr
(obj *C.PyObject)
error.go:153
↓ 31 callersMethodString
()
object.go:205
↓ 31 callersFunctioncnp
(n *NumberProtocol)
number.go:16
↓ 27 callersFunctionexception
()
error.go:121
↓ 20 callersMethodObj
()
object.go:32
↓ 15 callersFunctionint2Err
(i C.int)
error.go:146
↓ 13 callersFunctionnewObject
(obj *C.PyObject)
object.go:24
↓ 7 callersFunctionNewString
(s string)
string.go:20
↓ 6 callersFunctionNewDict
NewDict creates a new empty dictionary. Return value: New Reference.
dict.go:27
↓ 5 callersFunctionAssignTo
(in *Base, out interface{})
goargs.go:105
↓ 5 callersMethodNew
(args *Tuple, kw *Dict)
type.go:43
↓ 5 callersFunctionNewVar
(val interface{})
pyutil/var.go:109
↓ 5 callersFunctionNewVarEx
------------------------------------------------------------------------------------------
pyutil/var.go:96
↓ 5 callersFunctionPackTuple
PackTuple returns a new *Tuple which contains the arguments. This tuple is ready to use. Return value: New Reference.
tuple.go:43
↓ 4 callersFunctionCompile
(text, filename string, start StartToken)
code.go:62
↓ 4 callersMethodErr
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 callersMethodIncref
Incref increments obj's reference count, obj may not be nil.
object.go:55
↓ 4 callersFunctionPackEx
------------------------------------------------------------------------------------------
pyutil/call.go:11
↓ 4 callersMethodSize
* // 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 callersFunctionint2BoolErr
(i C.int)
error.go:139
↓ 4 callersFunctionnewDict
(obj *C.PyObject)
dict.go:20
↓ 4 callersFunctionnewModule
(obj *C.PyObject)
module.go:18
↓ 4 callersFunctionnewTuple
(obj *C.PyObject)
tuple.go:18
↓ 3 callersFunctionAsString
(o *Base)
string.go:27
↓ 3 callersMethodGetAttrString
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 callersMethodGetItem
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 callersMethodGetItemString
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 callersFunctionIncNone
------------------------------------------------------------------------------------------
none.go:12
↓ 3 callersMethodInt
()
int.go:40
↓ 3 callersFunctionNewInt
(i int)
int.go:25
↓ 3 callersFunctionToLong
(in *Base)
goargs.go:18
↓ 3 callersMethodType
Type returns a pointer to the Type that represents the type of this object in Python.
object.go:44
↓ 3 callersFunctionnewCode
(obj *C.PyObject)
code.go:51
↓ 3 callersFunctionnewError
(kind, val *Base, tb *C.PyObject)
error.go:23
↓ 3 callersFunctionnewFloat
(obj *C.PyObject)
float.go:17
↓ 3 callersFunctionnewInt
(obj *C.PyObject)
int.go:21
↓ 3 callersFunctionnewString
(obj *C.PyObject)
string.go:16
↓ 2 callersMethodCall
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 callersMethodCallMethodObject
(name string, args *Tuple)
object.go:271
↓ 2 callersMethodCallObject
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 callersMethodDict
Return value: Borrowed reference.
module.go:71
↓ 2 callersFunctionExecCodeModule
(name string, code *Base)
module.go:37
↓ 2 callersMethodLong
()
long.go:32
↓ 2 callersMethodNew
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 callersFunctionNewInstanceEx
------------------------------------------------------------------------------------------
pyutil/call.go:72
↓ 2 callersFunctionNewTuple
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 callersMethodNext
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 callersFunctionRaise
(err error)
error.go:96
↓ 2 callersFunctionRegister
只是让对象不被gc
goregister.go:45
↓ 2 callersMethodSetItem
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 callersMethodSetItemString
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 callersFunctionToString
(in *Base)
goargs.go:29
↓ 2 callersFunctioncheckFoo
(val *py.Dict, t *testing.T)
pyutil/var_test.go:68
↓ 2 callersFunctionnewLong
(obj *C.PyObject)
long.go:17
↓ 2 callersFunctionnewType
(obj *C.PyObject)
type.go:26
↓ 2 callersFunctionsigMatches
------------------------------------------------------------------------------------------ Note: Methods take the receiver as the first argument, whic
goregister.go:11
↓ 1 callersFunctionAsDict
(o *Base)
dict.go:37
↓ 1 callersFunctionAsInt
(o *Base)
int.go:33
↓ 1 callersFunctionAsLong
(o *Base)
long.go:25
↓ 1 callersFunctionCallEx
------------------------------------------------------------------------------------------
pyutil/call.go:34
↓ 1 callersFunctionCallMethod
(self *py.Base, method string, args ...interface{})
pyutil/call.go:65
↓ 1 callersFunctionCallMethodEx
------------------------------------------------------------------------------------------
pyutil/call.go:53
↓ 1 callersMethodCallMethodObjArgs
(name string, args ...*Base)
object.go:295
↓ 1 callersMethodEval
Return value: New reference.
code.go:94
↓ 1 callersFunctionFinalize
()
python.go:35
↓ 1 callersMethodGetItem
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 callersMethodHasFeature
HasFeature returns true when "t" has the feature in question.
type.go:82
↓ 1 callersFunctionInitialize
()
python.go:23
↓ 1 callersFunctionNew
(mod *py.Base, clsname string, args ...interface{})
pyutil/call.go:109
↓ 1 callersFunctionNewError
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 callersFunctionNewErrorV
NewErrorV returns a new Error of the specified kind, and with the given value.
error.go:81
↓ 1 callersFunctionNewEx
------------------------------------------------------------------------------------------
pyutil/call.go:91
↓ 1 callersMethodNewFunction
(name string, nin int, doc string)
gofunction.go:19
↓ 1 callersFunctionNewGoModule
(name string, doc string, self interface{})
gomodule.go:15
↓ 1 callersFunctionParseV
(in *Tuple, out ...interface{})
goargs.go:152
↓ 1 callersMethodRun
(globals, locals *Base)
code.go:100
↓ 1 callersMethodSetItem
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 callersMethodSize
()
tuple.go:76
↓ 1 callersFunctionToInt
------------------------------------------------------------------------------------------
goargs.go:12
↓ 1 callersFunctionToInterface
(in *Base)
goargs.go:37
↓ 1 callersFunctionassignToComplex
(in *Base, out1 reflect.Value)
goargs.go:87
↓ 1 callersFunctionassignToMap
------------------------------------------------------------------------------------------
goargs.go:49
↓ 1 callersFunctionnewClass
(obj *C.PyObject)
class.go:16
↓ 1 callersFunctionnewComplex
(val reflect.Value, cfg *Config)
pyutil/var.go:79
↓ 1 callersFunctionnewMap
(v reflect.Value, cfg *Config)
pyutil/var.go:54
↓ 1 callersFunctionnewStruct
(sv reflect.Value, cfg *Config)
pyutil/var.go:29
↓ 1 callersFunctiontagName
------------------------------------------------------------------------------------------
pyutil/var.go:22
MethodAbsolute
Absolute returns the absolute value of n. The equivalent Python is "abs(n)". Return value: New Reference.
number.go:116
MethodAdd
Add returns the result of adding n and obj. The equivalent Python is "n + obj". Return value: New Reference.
number.go:24
MethodAddIntConstant
(name string, value int)
module.go:110
MethodAddObject
(name string, obj *Base)
module.go:94
MethodAddStringConstant
(name, value string)
module.go:122
FunctionAddToPath
(dir string)
python.go:39
MethodAlloc
(n int64)
type.go:54
MethodAnd
And returns the bitwise and of n and obj. The equivalent Python is "n & obj". Return value: New Reference.
number.go:151
FunctionAsClass
(o *Base)
class.go:20
FunctionAsCode
(o *Base)
code.go:55
next →1–100 of 233, ranked by callers