MCPcopy Create free account

hub / github.com/goplus/py / functions

Functions233 in github.com/goplus/py

FunctionAsFloat
(o *Base)
float.go:25
FunctionAsModule
(o *Base)
module.go:59
FunctionAsTuple
(o *Base)
tuple.go:32
FunctionAsType
(o *Base)
type.go:30
MethodBytes
Bytes returns a Bytes representation of "obj". This is equivalent to the Python "bytes(obj)". In Python 2.x this method is identical to Str(). Retu
object.go:221
FunctionCall
(fn *py.Base, args ...interface{})
pyutil/call.go:46
MethodCallObjArgs
(args ...*Base)
object.go:289
MethodCheckExact
()
tuple.go:68
MethodCheckExact
CheckExact returns true when "t" is an actual Type object, and not some form of subclass.
type.go:69
MethodCheckExact
()
module.go:66
MethodCheckExact
CheckExact returns true if d is an actual dictionary object, and not an instance of a sub type.
dict.go:46
MethodClear
Clear empties the dictionary d of all key-value pairs.
dict.go:55
MethodCompare
PyObject_Cmp : Thanks to multiple return values, we don't need this function to be available in Go. Compare returns the result of comparing "obj" and
object.go:182
FunctionCompileFile
(name string, start StartToken)
code.go:76
MethodContains
Contains Returns true if the dictionary contains the given key. This is equivalent to the Python expression "key in d".
dict.go:61
MethodCopy
Copy returns a new dictionary that contains the same key-values pairs as d. Return value: New Reference.
dict.go:69
MethodDelAttr
PyObject_GenericSetAttr : This is an internal helper function - we shouldn't need to expose it ... DelAttr deletes the attribute with the name "name"
object.go:145
MethodDelAttrString
DelAttrString deletes the attribute with the name "name" from "obj". This is equivalent to the Python "del obj.name".
object.go:152
MethodDelItem
DelItem deletes the element from "obj" that corresponds to "key". This is equivalent to the Python "del obj[key]".
object.go:338
MethodDelItem
DelItem removes the entry with the key of "key" from the dictionary d. If "key" is not hashable, a TypeError is returned.
dict.go:93
MethodDelItemString
DelItem removes the entry with the key of "key" (or rather, with a *String with the value of "key" as the key) from the dictionary d.
dict.go:100
MethodDir
PyObject_AsFileDescriptor : TODO
object.go:345
MethodDivide
Divide returns the result of dividing n by obj. The equivalent Python is "n obj". Return value: New Reference.
number.go:51
MethodDivmod
Divmod returns the result of the Python "divmod(n, obj)". Return value: New Reference.
number.go:84
FunctionEnterRecursiveCall
EnterRecusiveCall marks a point where a recursive Go-level call is about to be performed. It returns true if the recursive call is permitted, otherwi
python.go:77
MethodErrV
ErrV returns a new Error of the specified kind, and with the given value.
exception.go:17
MethodError
Error() returns a string representation of the Python exception represented by the Error e. This is the same as the final line of the Python output f
error.go:46
MethodFilename
()
module.go:86
MethodFloat
()
float.go:37
MethodFloorDivide
FloorDivide returns the floor of dividing n obj obj. Return value: New Reference.
number.go:59
MethodFormat
(args *Tuple)
string.go:42
MethodGetAttr
GetAttr returns the attribute of "obj" with the name "name". This is equivalent to the Python "obj.name". Return value: New Reference.
object.go:105
FunctionGetBuiltins
Return a dictionary of the builtins in the current execution frame, or the interpreter of the thread state if no frame is currently executing. Return
code.go:125
FunctionGetException
()
error.go:113
FunctionGetGlobals
Return a dictionary of the local variables in the current execution frame, or NULL if no frame is currently executing. Return value: Borrowed referen
code.go:143
MethodGetItem
GetItem returns the element of "obj" corresponding to "key". This is equivalent to the Python "obj[key]". Return value: New Reference.
object.go:324
FunctionGetLocals
Return a dictionary of the global variables in the current execution frame, or NULL if no frame is currently executing. Return value: Borrowed refere
code.go:134
MethodGetSlice
(low, high int)
tuple.go:93
MethodHasAttr
HasAttr returns true if "obj" has the attribute "name". This is equivalent to the Python "hasattr(obj, name)".
object.go:81
MethodHasAttrString
HasAttrString returns true if "obj" has the attribute "name". This is equivalent to the Python "hasattr(obj, name)".
object.go:91
FunctionImport
(name string)
module.go:22
MethodInPlaceAdd
InPlaceAdd returns the result of adding n and obj. This is done in place if supported by n. The equivalent Python is "n += obj". Return value: New
number.go:177
MethodInPlaceAnd
InPlaceAnd returns the bitwise and of n and obj. This is done in place if supported by n. The equivalent Python is "n &= obj". Return value: New Re
number.go:267
MethodInPlaceDivide
InPlaceDivide returns the result of dividing n by obj. This is done in place if supported by n. The equivalent Python is "n /= obj". Return value:
number.go:204
MethodInPlaceFloorDivide
TODO returns the ... Return value: New Reference.
number.go:212
MethodInPlaceLshift
InPlaceLshift returns the result of left shifting n by obj. This is done in place if supported by n. The equivalent Python is "n <<= obj". Return v
number.go:249
MethodInPlaceMultiply
InPlaceMultiply returns the result of multiplying n by obj. This is done in place if supported by n. The equivalent Python is "n *= obj". Return va
number.go:195
MethodInPlaceOr
InPlaceOr returns the bitwise or of n and obj. This is done in place if supported by n. The equivalent Python is "n |= obj". Return value: New Refe
number.go:285
MethodInPlacePower
InPlacePower returns the result of the Python "pow(n, obj1, obj2)". This is done in place if supported by n. If obj2 is None, then the Python "n **=
number.go:240
MethodInPlaceRemainder
InPlaceRemainder returns the remainder of n divided by obj. This is done in place if supported by n. The equivalent Python is "n %= obj". Return va
number.go:229
MethodInPlaceRshift
InPlaceRshift returns the result of right shifting n by obj. This is done in place if supported by n. The equivalent Python is "n >>= obj". Return
number.go:258
MethodInPlaceSubtract
InPlaceSubtract returns the result of subtracting obj from n. This is done in place if supported by n. The equivalent Python is "n -= obj". Return
number.go:186
MethodInPlaceTrueDivide
TODO returns the ... Return value: New Reference.
number.go:220
MethodInPlaceXor
InPlaceXor returns the bitwise xor of n and obj. This is done in place if supported by n. The equivalent Python is "n ^= obj". Return value: New Re
number.go:276
MethodInit
Init initialises obj. It is equivalent to "obj.__init__(*args, **kw)" in Python.
object.go:38
MethodInit
(obj *Base, args *Tuple, kw *Dict)
type.go:59
FunctionInitializeEx
(initsigs bool)
python.go:27
MethodInvert
Invert returns the bitwise negation of n. The equivalent Python is "-n". Return value: New Reference.
number.go:124
MethodIsGc
IsGc returns true if the type "t" supports Cyclic Garbage Collection.
type.go:87
MethodIsInstance
PyObject_Unicode : TODO IsInstance returns true if "obj" is an instance of "cls", false otherwise. If "cls" is a Type instead of a class, then true wi
object.go:233
MethodIsSubclass
Return true if klass is a subclass of base. Return false in all other cases.
class.go:48
MethodIsSubclass
IsSubclass retuns true if "obj" is a Subclass of "cls", false otherwise. If "cls" is a Tuple, then true is returned if "obj" is a Subclass of any mem
object.go:241
MethodIsSubtype
IsSubtype returns true if "t" is a subclass of "t2".
type.go:92
MethodIsTrue
IsTrue returns true if the value of obj is considered to be True. This is equivalent to "if obj:" in Python.
object.go:61
FunctionLeaveRecursiveCall
LeaveRecursiveCall must be called after a recursive call that was indicated by EnterRecursiveCall.
python.go:85
MethodLength
PyObject_Hash : TODO PyObject_HashNotImplement : This is an internal function, that we probably don't need to export. Length returns the length of the
object.go:308
MethodLshift
Lshift returns the result of left shifting n by obj. The equivalent Python is "n << obj". Return value: New Reference.
number.go:133
FunctionMain
(args []string)
python.go:59
MethodMap
Map returns a Go map that contains the values from the Python dictionary, indexed by the keys. The keys and values are the same as in the Python dict
dict.go:209
MethodMapString
MapString is similar to Map, except that the keys are first converted to strings. If the keys are not all Python strings, then an error is returned.
dict.go:226
MethodMerge
PyDict_Next Merge merges key values pairs from Object o (which may be a dictionary, or an object that supports "o.keys()" and "o[key]") into the dicti
dict.go:173
MethodMergeFromSeq2
MergeFromSeq2 merges key values pairs from the Object o (which must be an iterable object, where each item is an iterable of length 2 - the key value
dict.go:194
MethodModified
PyType_ClearCache : TODO - ??? Modified should be called after the attributes or base class of a Type have been changed.
type.go:77
MethodMultiply
Multiply returns the result of multiplying n by obj. The equivalent Python is "n * obj". Return value: New Reference.
number.go:42
MethodName
Return module‘s __name__ value. If the module does not provide one, or if it is not a string, SystemError is raised and NULL is returned.
module.go:78
MethodNegative
Negative returns the negation of n. The equivalent Python is "-n". Return value: New Reference.
number.go:100
FunctionNewDictProxy
(obj *Base)
dict.go:32
FunctionNewFloat
(i float64)
float.go:21
FunctionNewFloatFromString
(s string)
float.go:32
FunctionNewInstance
(typ *py.Class, args ...interface{})
pyutil/call.go:84
FunctionNewInt64
(i int64)
int.go:29
FunctionNewLong
(i int64)
long.go:21
FunctionNewModule
(name string)
module.go:47
MethodNewNoArgs
()
class.go:27
MethodNewNoArgs
()
type.go:37
MethodNewObjArgs
(args ...*Base)
class.go:41
MethodNewObjArgs
(args ...*Base)
type.go:48
MethodNormalize
* // Matches returns true if e.Kind matches the exception in exc. If exc is a // Class, then true is returned if e.Kind is an instance. If exc is a
error.go:69
MethodNot
Not returns true if the value of obj is considered to be False. This is equivalent to "if not obj:" in Python.
object.go:71
MethodOr
Or returns the bitwise or of n and obj. The equivalent Python is "n | obj". Return value: New Reference.
number.go:168
FunctionPack
(args ...interface{})
pyutil/call.go:27
FunctionParse
------------------------------------------------------------------------------------------
goargs.go:129
MethodPositive
Positive returns the positive of n. The equivalent Python is "+n". Return value: New Reference.
number.go:108
MethodPower
Power returns the result of the Python "pow(n, obj1, obj2)". Return value: New Reference.
number.go:92
MethodPy_bar
(args *Tuple)
goregister_test.go:21
MethodPy_bar
(args *Tuple)
gomodule_test.go:13
MethodPy_bar
(args *py.Tuple)
examples/gomodule/gomodule.go:14
MethodPy_bar2
(args *py.Tuple)
examples/gomodule/gomodule.go:25
MethodPy_foo
(args *Tuple)
goregister_test.go:17
MethodRemainder
Remainder returns the remainder of dividing n by obj. The equivalent Python is "n % obj". Return value: New Reference.
number.go:76
← previousnext →101–200 of 233, ranked by callers