Documentation
¶
Index ¶
- Constants
- Variables
- func AIterCheck(_llcppg_param1 *Object) c.Int
- func AddPendingCall(func_ func(_llcppg_param1 unsafe.Pointer) c.Int, arg unsafe.Pointer) c.Int
- func ArgParse(_llcppg_param1 *Object, _llcppg_param2 *c.Char, __llgo_va_list ...any) c.Int
- func ArgParseTuple(_llcppg_param1 *Object, _llcppg_param2 *c.Char, __llgo_va_list ...any) c.Int
- func ArgParseTupleAndKeywords(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *c.Char, ...) c.Int
- func ArgUnpackTuple(_llcppg_param1 *Object, _llcppg_param2 *c.Char, _llcppg_param3 SsizeT, ...) c.Int
- func ArgVaParse(_llcppg_param1 *Object, _llcppg_param2 *c.Char, _llcppg_param3 c.VaList) c.Int
- func ArgVaParseTupleAndKeywords(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *c.Char, ...) c.Int
- func ArgValidateKeywordArguments(_llcppg_param1 *Object) c.Int
- func AtExit(func_ func()) c.Int
- func BufferFillContiguousStrides(ndims c.Int, shape *SsizeT, strides *SsizeT, itemsize c.Int, fort c.Char)
- func BufferFromContiguous(view *Buffer, buf unsafe.Pointer, len SsizeT, order c.Char) c.Int
- func BufferToContiguous(buf unsafe.Pointer, view *Buffer, len SsizeT, order c.Char) c.Int
- func BytesConcat(_llcppg_param1 **Object, _llcppg_param2 *Object)
- func BytesConcatAndDel(_llcppg_param1 **Object, _llcppg_param2 *Object)
- func BytesMain(argc c.Int, argv **c.Char) c.Int
- func CallableCheck(_llcppg_param1 *Object) c.Int
- func CapsuleGetContext(capsule *Object) unsafe.Pointer
- func CapsuleGetName(capsule *Object) *c.Char
- func CapsuleGetPointer(capsule *Object, name *c.Char) unsafe.Pointer
- func CapsuleImport(name *c.Char, no_block c.Int) unsafe.Pointer
- func CapsuleIsValid(capsule *Object, name *c.Char) c.Int
- func CapsuleSetContext(capsule *Object, context unsafe.Pointer) c.Int
- func CapsuleSetDestructor(capsule *Object, destructor CapsuleDestructor) c.Int
- func CapsuleSetName(capsule *Object, name *c.Char) c.Int
- func CapsuleSetPointer(capsule *Object, pointer unsafe.Pointer) c.Int
- func CodeAddWatcher(callback CodeWatchCallback) c.Int
- func CodeClearWatcher(watcher_id c.Int) c.Int
- func CodecKnownEncoding(encoding *c.Char) c.Int
- func CodecRegister(search_function *Object) c.Int
- func CodecRegisterError(name *c.Char, error *Object) c.Int
- func CodecUnregister(search_function *Object) c.Int
- func CompileOpcodeStackEffect(opcode c.Int, oparg c.Int) c.Int
- func CompileOpcodeStackEffectWithJump(opcode c.Int, oparg c.Int, jump c.Int) c.Int
- func ConfigGetInt(name *c.Char, value *c.Int) c.Int
- func ConfigSet(name *c.Char, value *Object) c.Int
- func ContextAddWatcher(callback ContextWatchCallback) c.Int
- func ContextClearWatcher(watcher_id c.Int) c.Int
- func DecRef(_llcppg_param1 *Object)
- func DecodeLocale(arg *c.Char, size *c.SizeT) *c.WcharT
- func DictAddWatcher(callback DictWatchCallback) c.Int
- func DictClearWatcher(watcher_id c.Int) c.Int
- func DictUnwatch(watcher_id c.Int, dict *Object) c.Int
- func DictWatch(watcher_id c.Int, dict *Object) c.Int
- func EncodeLocale(text *c.WcharT, error_pos *c.SizeT) *c.Char
- func EndInterpreter(_llcppg_param1 *ThreadState)
- func EnterRecursiveCall(where *c.Char) c.Int
- func ErrBadArgument() c.Int
- func ErrBadInternalCall()
- func ErrCheckSignals() c.Int
- func ErrClear()
- func ErrDisplay(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object)
- func ErrDisplayException(_llcppg_param1 *Object)
- func ErrExceptionMatches(_llcppg_param1 *Object) c.Int
- func ErrFetch(_llcppg_param1 **Object, _llcppg_param2 **Object, _llcppg_param3 **Object)
- func ErrFormatUnraisable(_llcppg_param1 *c.Char, __llgo_va_list ...any)
- func ErrGetExcInfo(_llcppg_param1 **Object, _llcppg_param2 **Object, _llcppg_param3 **Object)
- func ErrGivenExceptionMatches(_llcppg_param1 *Object, _llcppg_param2 *Object) c.Int
- func ErrNormalizeException(_llcppg_param1 **Object, _llcppg_param2 **Object, _llcppg_param3 **Object)
- func ErrPrint()
- func ErrPrintEx(_llcppg_param1 c.Int)
- func ErrRangedSyntaxLocationObject(filename *Object, lineno c.Int, col_offset c.Int, end_lineno c.Int, ...)
- func ErrResourceWarning(source *Object, stack_level SsizeT, format *c.Char, __llgo_va_list ...any) c.Int
- func ErrRestore(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object)
- func ErrSetExcInfo(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object)
- func ErrSetHandledException(_llcppg_param1 *Object)
- func ErrSetInterrupt()
- func ErrSetInterruptEx(signum c.Int) c.Int
- func ErrSetNone(_llcppg_param1 *Object)
- func ErrSetObject(_llcppg_param1 *Object, _llcppg_param2 *Object)
- func ErrSetRaisedException(_llcppg_param1 *Object)
- func ErrSetString(exception *Object, string *c.Char)
- func ErrSyntaxLocation(filename *c.Char, lineno c.Int)
- func ErrSyntaxLocationEx(filename *c.Char, lineno c.Int, col_offset c.Int)
- func ErrSyntaxLocationObject(filename *Object, lineno c.Int, col_offset c.Int)
- func ErrWarnEx(category *Object, message *c.Char, stack_level SsizeT) c.Int
- func ErrWarnExplicit(category *Object, message *c.Char, filename *c.Char, lineno c.Int, ...) c.Int
- func ErrWarnExplicitFormat(category *Object, filename *c.Char, lineno c.Int, module *c.Char, ...) c.Int
- func ErrWarnExplicitObject(category *Object, message *Object, filename *Object, lineno c.Int, ...) c.Int
- func ErrWarnFormat(category *Object, stack_level SsizeT, format *c.Char, __llgo_va_list ...any) c.Int
- func ErrWriteUnraisable(_llcppg_param1 *Object)
- func EvalAcquireThread(tstate *ThreadState)
- func EvalGetFuncDesc(_llcppg_param1 *Object) *c.Char
- func EvalGetFuncName(_llcppg_param1 *Object) *c.Char
- func EvalInitThreads()
- func EvalMergeCompilerFlags(cf *CompilerFlags) c.Int
- func EvalReleaseThread(tstate *ThreadState)
- func EvalRestoreThread(_llcppg_param1 *ThreadState)
- func EvalSetProfile(_llcppg_param1 Tracefunc, _llcppg_param2 *Object)
- func EvalSetProfileAllThreads(_llcppg_param1 Tracefunc, _llcppg_param2 *Object)
- func EvalSetTrace(_llcppg_param1 Tracefunc, _llcppg_param2 *Object)
- func EvalSetTraceAllThreads(_llcppg_param1 Tracefunc, _llcppg_param2 *Object)
- func ExceptionClassName(_llcppg_param1 *Object) *c.Char
- func ExceptionSetArgs(_llcppg_param1 *Object, _llcppg_param2 *Object)
- func ExceptionSetCause(_llcppg_param1 *Object, _llcppg_param2 *Object)
- func ExceptionSetContext(_llcppg_param1 *Object, _llcppg_param2 *Object)
- func ExceptionSetTraceback(_llcppg_param1 *Object, _llcppg_param2 *Object) c.Int
- func Exit(_llcppg_param1 c.Int)
- func ExitStatusException(err Status)
- func FatalError(message *c.Char)
- func Fclose(file *c.FILE) c.Int
- func FdIsInteractive(_llcppg_param1 *c.FILE, _llcppg_param2 *c.Char) c.Int
- func FileSetOpenCodeHook(hook OpenCodeHookFunction, userData unsafe.Pointer) c.Int
- func FileWriteObject(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 c.Int) c.Int
- func FileWriteString(_llcppg_param1 *c.Char, _llcppg_param2 *Object) c.Int
- func Finalize()
- func FinalizeEx() c.Int
- func FloatGetMax() c.Double
- func FloatGetMin() c.Double
- func FloatPack2(x c.Double, p *c.Char, le c.Int) c.Int
- func FloatPack4(x c.Double, p *c.Char, le c.Int) c.Int
- func FloatPack8(x c.Double, p *c.Char, le c.Int) c.Int
- func FloatUnpack2(p *c.Char, le c.Int) c.Double
- func FloatUnpack4(p *c.Char, le c.Int) c.Double
- func FloatUnpack8(p *c.Char, le c.Int) c.Double
- func Fopen(path *Object, mode *c.Char) *c.FILE
- func FrozenMain(argc c.Int, argv **c.Char) c.Int
- func FunctionAddWatcher(callback FunctionWatchCallback) c.Int
- func FunctionClearWatcher(watcher_id c.Int) c.Int
- func GC_Disable() c.Int
- func GC_Enable() c.Int
- func GC_IsEnabled() c.Int
- func GETENV(name *c.Char) *c.Char
- func GILStateCheck() c.Int
- func GILStateRelease(_llcppg_param1 GILState_STATE)
- func GetArgcArgv(argc *c.Int, argv ***c.WcharT)
- func GetBuildInfo() *c.Char
- func GetCompiler() *c.Char
- func GetCopyright() *c.Char
- func GetExecPrefix() *c.WcharT
- func GetPath() *c.WcharT
- func GetPlatform() *c.Char
- func GetPrefix() *c.WcharT
- func GetProgramFullPath() *c.WcharT
- func GetProgramName() *c.WcharT
- func GetPythonHome() *c.WcharT
- func GetRecursionLimit() c.Int
- func GetVersion() *c.Char
- func ImportAppendInittab(name *c.Char, initfunc func() *Object) c.Int
- func ImportGetMagicNumber() c.Long
- func ImportGetMagicTag() *c.Char
- func ImportImportFrozenModule(name *c.Char) c.Int
- func IncRef(_llcppg_param1 *Object)
- func IndexCheck(_llcppg_param1 *Object) c.Int
- func InitConfigFreeStrList(length c.SizeT, items **c.Char)
- func Initialize()
- func InitializeEx(_llcppg_param1 c.Int)
- func InitializeFromInitConfig(config *InitConfig) c.Int
- func Is(x *Object, y *Object) c.Int
- func IsFalse(x *Object) c.Int
- func IsFinalizing() c.Int
- func IsInitialized() c.Int
- func IsNone(x *Object) c.Int
- func IsTrue(x *Object) c.Int
- func IterCheck(_llcppg_param1 *Object) c.Int
- func IterNextItem(iter *Object, item **Object) c.Int
- func LeaveRecursiveCall()
- func Main(argc c.Int, argv **c.WcharT) c.Int
- func MakePendingCalls() c.Int
- func MappingCheck(o *Object) c.Int
- func MappingGetOptionalItem(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 **Object) c.Int
- func MappingGetOptionalItemString(_llcppg_param1 *Object, _llcppg_param2 *c.Char, _llcppg_param3 **Object) c.Int
- func MappingHasKey(o *Object, key *Object) c.Int
- func MappingHasKeyString(o *Object, key *c.Char) c.Int
- func MappingHasKeyStringWithError(o *Object, key *c.Char) c.Int
- func MappingHasKeyWithError(o *Object, key *Object) c.Int
- func MappingSetItemString(o *Object, key *c.Char, value *Object) c.Int
- func MemCalloc(nelem c.SizeT, elsize c.SizeT) unsafe.Pointer
- func MemFree(ptr unsafe.Pointer)
- func MemGetAllocator(domain MemAllocatorDomain, allocator *MemAllocatorEx)
- func MemMalloc(size c.SizeT) unsafe.Pointer
- func MemRawCalloc(nelem c.SizeT, elsize c.SizeT) unsafe.Pointer
- func MemRawFree(ptr unsafe.Pointer)
- func MemRawMalloc(size c.SizeT) unsafe.Pointer
- func MemRawRealloc(ptr unsafe.Pointer, new_size c.SizeT) unsafe.Pointer
- func MemRealloc(ptr unsafe.Pointer, new_size c.SizeT) unsafe.Pointer
- func MemSetAllocator(domain MemAllocatorDomain, allocator *MemAllocatorEx)
- func MemSetupDebugHooks()
- func MemberSetOne(_llcppg_param1 *c.Char, _llcppg_param2 *MemberDef, _llcppg_param3 *Object) c.Int
- func ModuleAdd(mod *Object, name *c.Char, value *Object) c.Int
- func ModuleAddFunctions(_llcppg_param1 *Object, _llcppg_param2 *MethodDef) c.Int
- func ModuleAddIntConstant(_llcppg_param1 *Object, _llcppg_param2 *c.Char, _llcppg_param3 c.Long) c.Int
- func ModuleAddObject(mod *Object, _llcppg_param2 *c.Char, value *Object) c.Int
- func ModuleAddObjectRef(mod *Object, name *c.Char, value *Object) c.Int
- func ModuleAddStringConstant(_llcppg_param1 *Object, _llcppg_param2 *c.Char, _llcppg_param3 *c.Char) c.Int
- func ModuleAddType(module *Object, type_ *TypeObject) c.Int
- func ModuleExecDef(module *Object, def *ModuleDef) c.Int
- func ModuleGetFilename(_llcppg_param1 *Object) *c.Char
- func ModuleGetName(_llcppg_param1 *Object) *c.Char
- func ModuleGetState(_llcppg_param1 *Object) unsafe.Pointer
- func ModuleSetDocString(_llcppg_param1 *Object, _llcppg_param2 *c.Char) c.Int
- func MonitoringEnterScope(state_array *MonitoringState, version *c.Uint64T, event_types *c.Uint8T, ...) c.Int
- func MonitoringExitScope() c.Int
- func NumberCheck(o *Object) c.Int
- func OSDoubleToString(val c.Double, format_code c.Char, precision c.Int, flags c.Int, type_ *c.Int) *c.Char
- func OSMystricmp(_llcppg_param1 *c.Char, _llcppg_param2 *c.Char) c.Int
- func OSMystrnicmp(_llcppg_param1 *c.Char, _llcppg_param2 *c.Char, _llcppg_param3 SsizeT) c.Int
- func OSSnprintf(str *c.Char, size c.SizeT, format *c.Char, __llgo_va_list ...any) c.Int
- func OSStringToDouble(str *c.Char, endptr **c.Char, overflow_exception *Object) c.Double
- func OSStrtol(_llcppg_param1 *c.Char, _llcppg_param2 **c.Char, _llcppg_param3 c.Int) c.Long
- func OSStrtoul(_llcppg_param1 *c.Char, _llcppg_param2 **c.Char, _llcppg_param3 c.Int) c.Ulong
- func OSVsnprintf(str *c.Char, size c.SizeT, format *c.Char, va c.VaList) c.Int
- func OS_AfterFork()
- func OS_AfterFork_Child()
- func OS_AfterFork_Parent()
- func OS_BeforeFork()
- func OS_InterruptOccurred() c.Int
- func OS_Readline(_llcppg_param1 *c.FILE, _llcppg_param2 *c.FILE, _llcppg_param3 *c.Char) *c.Char
- func ObjectCalloc(nelem c.SizeT, elsize c.SizeT) unsafe.Pointer
- func ObjectFree(ptr unsafe.Pointer)
- func ObjectGetArenaAllocator(allocator *ObjectArenaAllocator)
- func ObjectMalloc(size c.SizeT) unsafe.Pointer
- func ObjectRealloc(ptr unsafe.Pointer, new_size c.SizeT) unsafe.Pointer
- func ObjectSetArenaAllocator(allocator *ObjectArenaAllocator)
- func Object_GC_Del(_llcppg_param1 unsafe.Pointer)
- func Object_GC_Track(_llcppg_param1 unsafe.Pointer)
- func Object_GC_UnTrack(_llcppg_param1 unsafe.Pointer)
- func PACK_FULL_VERSION(x c.Int, y c.Int, z c.Int, level c.Int, serial c.Int) c.Uint32T
- func PACK_VERSION(x c.Int, y c.Int) c.Uint32T
- func PickleBufferRelease(_llcppg_param1 *Object) c.Int
- func RefTracerSetTracer(tracer RefTracer, data unsafe.Pointer) c.Int
- func ReprEnter(_llcppg_param1 *Object) c.Int
- func ReprLeave(_llcppg_param1 *Object)
- func RunAnyFile(fp *c.FILE, name *c.Char) c.Int
- func RunAnyFileEx(fp *c.FILE, name *c.Char, closeit c.Int) c.Int
- func RunAnyFileExFlags(fp *c.FILE, filename *c.Char, closeit c.Int, flags *CompilerFlags) c.Int
- func RunAnyFileFlags(_llcppg_param1 *c.FILE, _llcppg_param2 *c.Char, _llcppg_param3 *CompilerFlags) c.Int
- func RunInteractiveLoop(f *c.FILE, p *c.Char) c.Int
- func RunInteractiveLoopFlags(fp *c.FILE, filename *c.Char, flags *CompilerFlags) c.Int
- func RunInteractiveOne(f *c.FILE, p *c.Char) c.Int
- func RunInteractiveOneFlags(fp *c.FILE, filename *c.Char, flags *CompilerFlags) c.Int
- func RunInteractiveOneObject(fp *c.FILE, filename *Object, flags *CompilerFlags) c.Int
- func RunMain() c.Int
- func RunSimpleFile(f *c.FILE, p *c.Char) c.Int
- func RunSimpleFileEx(f *c.FILE, p *c.Char, c c.Int) c.Int
- func RunSimpleFileExFlags(fp *c.FILE, filename *c.Char, closeit c.Int, flags *CompilerFlags) c.Int
- func RunSimpleString(s *c.Char) c.Int
- func RunSimpleStringFlags(_llcppg_param1 *c.Char, _llcppg_param2 *CompilerFlags) c.Int
- func SequenceCheck(o *Object) c.Int
- func SequenceContains(seq *Object, ob *Object) c.Int
- func SequenceDelItem(o *Object, i SsizeT) c.Int
- func SequenceDelSlice(o *Object, i1 SsizeT, i2 SsizeT) c.Int
- func SequenceIn(o *Object, value *Object) c.Int
- func SequenceSetItem(o *Object, i SsizeT, v *Object) c.Int
- func SequenceSetSlice(o *Object, i1 SsizeT, i2 SsizeT, v *Object) c.Int
- func SetProgramName(_llcppg_param1 *c.WcharT)
- func SetPythonHome(_llcppg_param1 *c.WcharT)
- func SetRecursionLimit(_llcppg_param1 c.Int)
- func SignalSetWakeupFd(fd c.Int) c.Int
- func StateAddModule(_llcppg_param1 *Object, _llcppg_param2 *ModuleDef) c.Int
- func StateRemoveModule(_llcppg_param1 *ModuleDef) c.Int
- func SysAddAuditHook(_llcppg_param1 AuditHookFunction, _llcppg_param2 unsafe.Pointer) c.Int
- func SysAudit(event *c.Char, argFormat *c.Char, __llgo_va_list ...any) c.Int
- func SysAuditTuple(event *c.Char, args *Object) c.Int
- func SysFormatStderr(format *c.Char, __llgo_va_list ...any)
- func SysFormatStdout(format *c.Char, __llgo_va_list ...any)
- func SysResetWarnOptions()
- func SysSetArgv(_llcppg_param1 c.Int, _llcppg_param2 **c.WcharT)
- func SysSetArgvEx(_llcppg_param1 c.Int, _llcppg_param2 **c.WcharT, _llcppg_param3 c.Int)
- func SysSetObject(_llcppg_param1 *c.Char, _llcppg_param2 *Object) c.Int
- func SysWriteStderr(format *c.Char, __llgo_va_list ...any)
- func SysWriteStdout(format *c.Char, __llgo_va_list ...any)
- func ThreadAcquireLock(_llcppg_param1 ThreadTypeLock, _llcppg_param2 c.Int) c.Int
- func ThreadCreateKey() c.Int
- func ThreadDeleteKey(key c.Int)
- func ThreadDeleteKeyValue(key c.Int)
- func ThreadExitThread()
- func ThreadFreeLock(_llcppg_param1 ThreadTypeLock)
- func ThreadGetKeyValue(key c.Int) unsafe.Pointer
- func ThreadGetStacksize() c.SizeT
- func ThreadGetThreadIdent() c.Ulong
- func ThreadGetThreadNativeId() c.Ulong
- func ThreadInitThread()
- func ThreadReleaseLock(_llcppg_param1 ThreadTypeLock)
- func ThreadSetKeyValue(key c.Int, value unsafe.Pointer) c.Int
- func ThreadSetStacksize(_llcppg_param1 c.SizeT) c.Int
- func ThreadStartNewThread(_llcppg_param1 func(_llcppg_param1 unsafe.Pointer), ...) c.Ulong
- func ThreadStateDeleteCurrent()
- func ThreadStateSetAsyncExc(_llcppg_param1 c.Ulong, _llcppg_param2 *Object) c.Int
- func Thread_ReInitTLS()
- func TimeAsSecondsDouble(t TimeT) c.Double
- func TimeMonotonic(result *TimeT) c.Int
- func TimeMonotonicRaw(result *TimeT) c.Int
- func TimePerfCounter(result *TimeT) c.Int
- func TimePerfCounterRaw(result *TimeT) c.Int
- func TimeTime(result *TimeT) c.Int
- func TimeTimeRaw(result *TimeT) c.Int
- func TraceBackHere(_llcppg_param1 *FrameObject) c.Int
- func TraceBackPrint(_llcppg_param1 *Object, _llcppg_param2 *Object) c.Int
- func TraceMallocTrack(domain c.Uint, ptr c.UintptrT, size c.SizeT) c.Int
- func TraceMallocUntrack(domain c.Uint, ptr c.UintptrT) c.Int
- func TypeAddWatcher(callback TypeWatchCallback) c.Int
- func TypeClearCache() c.Uint
- func TypeClearWatcher(watcher_id c.Int) c.Int
- func TypeUnwatch(watcher_id c.Int, type_ *Object) c.Int
- func TypeWatch(watcher_id c.Int, type_ *Object) c.Int
- func UnicodeAppend(pleft **Object, right *Object)
- func UnicodeAppendAndDel(pleft **Object, right *Object)
- func UnicodeDecodeErrorGetEnd(_llcppg_param1 *Object, _llcppg_param2 *SsizeT) c.Int
- func UnicodeDecodeErrorGetStart(_llcppg_param1 *Object, _llcppg_param2 *SsizeT) c.Int
- func UnicodeDecodeErrorSetEnd(_llcppg_param1 *Object, _llcppg_param2 SsizeT) c.Int
- func UnicodeDecodeErrorSetReason(exc *Object, reason *c.Char) c.Int
- func UnicodeDecodeErrorSetStart(_llcppg_param1 *Object, _llcppg_param2 SsizeT) c.Int
- func UnicodeEncodeErrorGetEnd(_llcppg_param1 *Object, _llcppg_param2 *SsizeT) c.Int
- func UnicodeEncodeErrorGetStart(_llcppg_param1 *Object, _llcppg_param2 *SsizeT) c.Int
- func UnicodeEncodeErrorSetEnd(_llcppg_param1 *Object, _llcppg_param2 SsizeT) c.Int
- func UnicodeEncodeErrorSetReason(exc *Object, reason *c.Char) c.Int
- func UnicodeEncodeErrorSetStart(_llcppg_param1 *Object, _llcppg_param2 SsizeT) c.Int
- func UnicodeGetDefaultEncoding() *c.Char
- func UnicodeInternInPlace(_llcppg_param1 **Object)
- func UnicodeResize(unicode **Object, length SsizeT) c.Int
- func UnicodeTranslateErrorGetEnd(_llcppg_param1 *Object, _llcppg_param2 *SsizeT) c.Int
- func UnicodeTranslateErrorGetStart(_llcppg_param1 *Object, _llcppg_param2 *SsizeT) c.Int
- func UnicodeTranslateErrorSetEnd(_llcppg_param1 *Object, _llcppg_param2 SsizeT) c.Int
- func UnicodeTranslateErrorSetReason(exc *Object, reason *c.Char) c.Int
- func UnicodeTranslateErrorSetStart(_llcppg_param1 *Object, _llcppg_param2 SsizeT) c.Int
- func UniversalNewlineFgets(_llcppg_param1 *c.Char, _llcppg_param2 c.Int, _llcppg_param3 *c.FILE, ...) *c.Char
- func UnstableAtExit(_llcppg_param1 *InterpreterState, _llcppg_param2 AtexitDatacallbackfunc, ...) c.Int
- func UnstableCodeGetExtra(code *Object, index SsizeT, extra *unsafe.Pointer) c.Int
- func UnstableCodeSetExtra(code *Object, index SsizeT, extra unsafe.Pointer) c.Int
- func UnstableCopyPerfMapFile(parent_filename *c.Char) c.Int
- func UnstableEnableTryIncRef(_llcppg_param1 *Object)
- func UnstableInterpreterFrameGetLasti(frame *X_InterpreterFrame) c.Int
- func UnstableInterpreterFrameGetLine(frame *X_InterpreterFrame) c.Int
- func UnstableIsImmortal(_llcppg_param1 *Object) c.Int
- func UnstableLongIsCompact(op *LongObject) c.Int
- func UnstableObjectClearWeakRefsNoCallbacks(_llcppg_param1 *Object)
- func UnstableObjectEnableDeferredRefcount(_llcppg_param1 *Object) c.Int
- func UnstableObjectIsUniqueReferencedTemporary(_llcppg_param1 *Object) c.Int
- func UnstableObjectIsUniquelyReferenced(_llcppg_param1 *Object) c.Int
- func UnstablePerfMapStateFini()
- func UnstablePerfMapStateInit() c.Int
- func UnstablePerfTrampolineCompileCode(_llcppg_param1 *CodeObject) c.Int
- func UnstablePerfTrampolineSetPersistAfterFork(enable c.Int) c.Int
- func UnstableThreadStateResetStackProtection(tstate *ThreadState)
- func UnstableThreadStateSetStackProtection(tstate *ThreadState, stack_start_addr unsafe.Pointer, stack_size c.SizeT) c.Int
- func UnstableTryIncRef(_llcppg_param1 *Object) c.Int
- func UnstableTypeAssignVersionTag(type_ *TypeObject) c.Int
- func UnstableWritePerfMapEntry(code_addr unsafe.Pointer, code_size c.Uint, entry_name *c.Char) c.Int
- func Unstable_GC_VisitObjects(callback GcvisitobjectsT, arg unsafe.Pointer)
- func WeakrefGetRef(ref *Object, pobj **Object) c.Int
- func WeakrefIsDead(ref *Object) c.Int
- func X_ArgParseTupleAndKeywordsFast(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *X_ArgParser, ...) c.Int
- func X_BreakPoint()
- func X_BytesResize(_llcppg_param1 **Object, _llcppg_param2 SsizeT) c.Int
- func X_CodeCheckLineNumber(lasti c.Int, bounds *CodeAddressRange) c.Int
- func X_Dealloc(_llcppg_param1 *Object)
- func X_DecRef(_llcppg_param1 *Object)
- func X_ErrBadInternalCall(filename *c.Char, lineno c.Int)
- func X_ErrChainExceptions1(_llcppg_param1 *Object)
- func X_EvalSliceIndex(_llcppg_param1 *Object, _llcppg_param2 *SsizeT) c.Int
- func X_EvalSliceIndexNotNone(_llcppg_param1 *Object, _llcppg_param2 *SsizeT) c.Int
- func X_FatalErrorFunc(func_ *c.Char, message *c.Char)
- func X_ForgetReference(op *Object)
- func X_IncRef(_llcppg_param1 *Object)
- func X_InterpreterStateRequireIDRef(_llcppg_param1 *InterpreterState, _llcppg_param2 c.Int)
- func X_InterpreterStateRequiresIDRef(_llcppg_param1 *InterpreterState) c.Int
- func X_InterpreterStateSetEvalFrameFunc(interp *InterpreterState, eval_frame X_FrameEvalFunction)
- func X_LongAsByteArray(v *LongObject, bytes *uint8, n c.SizeT, little_endian c.Int, is_signed c.Int, ...) c.Int
- func X_LongNumBits(v *Object) c.Int64T
- func X_LongSign(v *Object) c.Int
- func X_MonitoringFireBranchEvent(state *MonitoringState, codelike *Object, offset c.Int32T, ...) c.Int
- func X_MonitoringFireBranchLeftEvent(state *MonitoringState, codelike *Object, offset c.Int32T, ...) c.Int
- func X_MonitoringFireBranchRightEvent(state *MonitoringState, codelike *Object, offset c.Int32T, ...) c.Int
- func X_MonitoringFireCRaiseEvent(state *MonitoringState, codelike *Object, offset c.Int32T) c.Int
- func X_MonitoringFireCReturnEvent(state *MonitoringState, codelike *Object, offset c.Int32T, retval *Object) c.Int
- func X_MonitoringFireCallEvent(state *MonitoringState, codelike *Object, offset c.Int32T, callable *Object, ...) c.Int
- func X_MonitoringFireExceptionHandledEvent(state *MonitoringState, codelike *Object, offset c.Int32T) c.Int
- func X_MonitoringFireJumpEvent(state *MonitoringState, codelike *Object, offset c.Int32T, ...) c.Int
- func X_MonitoringFireLineEvent(state *MonitoringState, codelike *Object, offset c.Int32T, lineno c.Int) c.Int
- func X_MonitoringFirePyResumeEvent(state *MonitoringState, codelike *Object, offset c.Int32T) c.Int
- func X_MonitoringFirePyReturnEvent(state *MonitoringState, codelike *Object, offset c.Int32T, retval *Object) c.Int
- func X_MonitoringFirePyStartEvent(state *MonitoringState, codelike *Object, offset c.Int32T) c.Int
- func X_MonitoringFirePyThrowEvent(state *MonitoringState, codelike *Object, offset c.Int32T) c.Int
- func X_MonitoringFirePyUnwindEvent(state *MonitoringState, codelike *Object, offset c.Int32T) c.Int
- func X_MonitoringFirePyYieldEvent(state *MonitoringState, codelike *Object, offset c.Int32T, retval *Object) c.Int
- func X_MonitoringFireRaiseEvent(state *MonitoringState, codelike *Object, offset c.Int32T) c.Int
- func X_MonitoringFireReraiseEvent(state *MonitoringState, codelike *Object, offset c.Int32T) c.Int
- func X_MonitoringFireStopIterationEvent(state *MonitoringState, codelike *Object, offset c.Int32T, value *Object) c.Int
- func X_NewReference(op *Object)
- func X_NewReferenceNoTotal(op *Object)
- func X_ObjectAssertFailed(obj *Object, expr *c.Char, msg *c.Char, file *c.Char, line c.Int, ...)
- func X_ObjectDump(_llcppg_param1 *Object)
- func X_ObjectGenericSetAttrWithDict(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object, ...) c.Int
- func X_ObjectSetManagedDict(obj *Object, new_dict *Object) c.Int
- func X_ReachedRecursionLimitWithMargin(tstate *ThreadState, margin_count c.Int) c.Int
- func X_ResurrectReference(op *Object)
- func X_SetRefcnt(ob *Object, refcnt SsizeT)
- func X_SliceGetLongIndices(self *SliceObject, length *Object, start_ptr **Object, stop_ptr **Object, ...) c.Int
- func X_TrashThreadDepositObject(tstate *ThreadState, op *Object)
- func X_TrashThreadDestroyChain(tstate *ThreadState)
- func X_TupleResize(_llcppg_param1 **Object, _llcppg_param2 SsizeT) c.Int
- func X_TypeName(_llcppg_param1 *TypeObject) *c.Char
- func X_UnicodeIsAlpha(ch UCS4) c.Int
- func X_UnicodeIsDecimalDigit(ch UCS4) c.Int
- func X_UnicodeIsDigit(ch UCS4) c.Int
- func X_UnicodeIsLinebreak(ch UCS4) c.Int
- func X_UnicodeIsLowercase(ch UCS4) c.Int
- func X_UnicodeIsNumeric(ch UCS4) c.Int
- func X_UnicodeIsPrintable(ch UCS4) c.Int
- func X_UnicodeIsTitlecase(ch UCS4) c.Int
- func X_UnicodeIsUppercase(ch UCS4) c.Int
- func X_UnicodeIsWhitespace(ch UCS4) c.Int
- func X_UnicodeToDecimalDigit(ch UCS4) c.Int
- func X_UnicodeToDigit(ch UCS4) c.Int
- func X_UnicodeToNumeric(ch UCS4) c.Double
- func X_UnicodeWriterDealloc(writer *X_UnicodeWriter)
- func X_UnicodeWriterInit(writer *X_UnicodeWriter)
- func X_UnicodeWriterPrepareInternal(writer *X_UnicodeWriter, length SsizeT, maxchar UCS4) c.Int
- func X_UnicodeWriterPrepareKindInternal(writer *X_UnicodeWriter, kind c.Int) c.Int
- func X_UnicodeWriterWriteASCIIString(writer *X_UnicodeWriter, str *c.Char, len SsizeT) c.Int
- func X_UnicodeWriterWriteChar(writer *X_UnicodeWriter, ch UCS4) c.Int
- func X_UnicodeWriterWriteLatin1String(writer *X_UnicodeWriter, str *c.Char, len SsizeT) c.Int
- func X_UnicodeWriterWriteStr(writer *X_UnicodeWriter, str *Object) c.Int
- func X_UnicodeWriterWriteSubstring(writer *X_UnicodeWriter, str *Object, start SsizeT, end SsizeT) c.Int
- func X_WeakrefClearRef(self *WeakReference)
- func X_cAbs(_llcppg_param1 Complex) c.Double
- type ASCIIObject
- type Allocfunc
- type AsyncGenObject
- type AsyncMethods
- type AtexitDatacallbackfunc
- type AttributeErrorObject
- type AuditHookFunction
- type BaseExceptionGroupObject
- type BaseExceptionObject
- type Binaryfunc
- type Buffer
- type BufferProcs
- type ByteArrayObject
- type BytesObject
- func BytesFromFormat(_llcppg_param1 *c.Char, __llgo_va_list ...any) *BytesObject
- func BytesFromFormatV(_llcppg_param1 *c.Char, _llcppg_param2 c.VaList) *BytesObject
- func BytesFromString(_llcppg_param1 *c.Char) *BytesObject
- func BytesFromStringAndSize(_llcppg_param1 *c.Char, _llcppg_param2 SsizeT) *BytesObject
- type CFunction
- type CFunctionFast
- type CFunctionFastWithKeywords
- type CFunctionObject
- type CFunctionWithKeywords
- type CMethod
- type CMethodObject
- type CapsuleDestructor
- type CellObject
- type CodeAddressRange
- type CodeEvent
- type CodeObject
- func CodeNewEmpty(filename *c.Char, funcname *c.Char, firstlineno c.Int) *CodeObject
- func UnstableCodeNew(_llcppg_param1 c.Int, _llcppg_param2 c.Int, _llcppg_param3 c.Int, ...) *CodeObject
- func UnstableCodeNewWithPosOnlyArgs(_llcppg_param1 c.Int, _llcppg_param2 c.Int, _llcppg_param3 c.Int, ...) *CodeObject
- func (self *CodeObject) Addr2Line(_llcppg_param2 c.Int) c.Int
- func (self *CodeObject) Addr2Location(_llcppg_param2 c.Int, _llcppg_param3 *c.Int, _llcppg_param4 *c.Int, ...) c.Int
- func (self *CodeObject) Cellvars() *Object
- func (self *CodeObject) Freevars() *Object
- func (self *CodeObject) Get() *Object
- func (self *CodeObject) Optimize(consts *Object, names *Object, lnotab *Object) *Object
- func (self *CodeObject) Varnames() *Object
- type CodeWatchCallback
- type CompactUnicodeObject
- type CompilerFlags
- type Complex
- func X_cDiff(_llcppg_param1 Complex, _llcppg_param2 Complex) Complex
- func X_cNeg(_llcppg_param1 Complex) Complex
- func X_cPow(_llcppg_param1 Complex, _llcppg_param2 Complex) Complex
- func X_cProd(_llcppg_param1 Complex, _llcppg_param2 Complex) Complex
- func X_cQuot(_llcppg_param1 Complex, _llcppg_param2 Complex) Complex
- func X_cSum(_llcppg_param1 Complex, _llcppg_param2 Complex) Complex
- type ComplexObject
- type Config
- func (self *Config) Clear()
- func (self *Config) InitIsolated()
- func (self *Config) InitPython()
- func (self *Config) Read() Status
- func (self *Config) SetArgv(argc SsizeT, argv **c.WcharT) Status
- func (self *Config) SetBytesArgv(argc SsizeT, argv **c.Char) Status
- func (self *Config) SetBytesString(config_str **c.WcharT, str *c.Char) Status
- func (self *Config) SetString(config_str **c.WcharT, str *c.WcharT) Status
- func (self *Config) SetWideStringList(list *WideStringList, length SsizeT, items **c.WcharT) Status
- type Context
- type ContextEvent
- type ContextToken
- type ContextVar
- type ContextWatchCallback
- type CoroObject
- type CriticalSection
- type CriticalSection2
- type DescrObject
- type Descrgetfunc
- type Descrsetfunc
- type Destructor
- type DictKeysObject
- type DictObject
- func (self *DictObject) Clear()
- func (self *DictObject) Contains(key *Object) c.Int
- func (self *DictObject) ContainsString(key *c.Char) c.Int
- func (self *DictObject) Copy() *Object
- func (self *DictObject) DelItem(key *Object) c.Int
- func (self *DictObject) DelItemString(key *c.Char) c.Int
- func (self *DictObject) Item(key *Object) *Object
- func (self *DictObject) ItemRef(key *Object, result **Object) c.Int
- func (self *DictObject) ItemString(key *c.Char) *Object
- func (self *DictObject) ItemStringRef(key *c.Char, result **Object) c.Int
- func (self *DictObject) ItemWithError(key *Object) *Object
- func (self *DictObject) Items() *Object
- func (self *DictObject) Keys() *Object
- func (self *DictObject) Merge(other *Object, override c.Int) c.Int
- func (self *DictObject) MergeFromSeq2(seq2 *Object, override c.Int) c.Int
- func (self *DictObject) Next(pos *SsizeT, key **Object, value **Object) c.Int
- func (self *DictObject) Pop(key *Object, result **Object) c.Int
- func (self *DictObject) PopString(key *c.Char, result **Object) c.Int
- func (self *DictObject) SetDefault(key *Object, defaultobj *Object) *Object
- func (self *DictObject) SetDefaultRef(key *Object, default_value *Object, result **Object) c.Int
- func (self *DictObject) SetItem(key *Object, item *Object) c.Int
- func (self *DictObject) SetItemString(key *c.Char, item *Object) c.Int
- func (self *DictObject) Size() SsizeT
- func (self *DictObject) Update(other *Object) c.Int
- func (self *DictObject) Values() *Object
- type DictValues
- type DictWatchCallback
- type DictWatchEvent
- type Digit
- type EnvironmentErrorObject
- type FloatObject
- type FrameConstructor
- type FrameObject
- func (self *FrameObject) Back() *FrameObject
- func (self *FrameObject) Builtins() *Object
- func (self *FrameObject) Code() *CodeObject
- func (self *FrameObject) GenNewWithQualName(name *Object, qualname *Object) *Object
- func (self *FrameObject) Generator() *Object
- func (self *FrameObject) Globals() *Object
- func (self *FrameObject) Lasti() c.Int
- func (self *FrameObject) LineNumber() c.Int
- func (self *FrameObject) Locals() *Object
- func (self *FrameObject) Var(name *Object) *Object
- func (self *FrameObject) VarString(name *c.Char) *Object
- type Freefunc
- type FunctionObject
- func (self *FunctionObject) Annotations() *Object
- func (self *FunctionObject) Closure() *Object
- func (self *FunctionObject) Code() *Object
- func (self *FunctionObject) Defaults() *Object
- func (self *FunctionObject) Globals() *Object
- func (self *FunctionObject) KwDefaults() *Object
- func (self *FunctionObject) Module() *Object
- func (self *FunctionObject) NewWithQualName(_llcppg_param2 *Object, _llcppg_param3 *Object) *Object
- func (self *FunctionObject) SetAnnotations(_llcppg_param2 *Object) c.Int
- func (self *FunctionObject) SetClosure(_llcppg_param2 *Object) c.Int
- func (self *FunctionObject) SetDefaults(_llcppg_param2 *Object) c.Int
- func (self *FunctionObject) SetKwDefaults(_llcppg_param2 *Object) c.Int
- func (self *FunctionObject) SetVectorcall(_llcppg_param2 Vectorcallfunc)
- type FunctionWatchCallback
- type FunctionWatchEvent
- type GILState_STATE
- type GcvisitobjectsT
- type GenObject
- type GetSetDef
- type GetSetDescrObject
- type Getattrfunc
- type Getattrofunc
- type Getbufferproc
- type Getiterfunc
- type Getter
- type HashFuncDef
- type HashT
- type Hashfunc
- type HeapTypeObject
- type ImportErrorObject
- type InitConfig
- func (self *InitConfig) AddModule(name *c.Char, initfunc func() *Object) c.Int
- func (self *InitConfig) Error(err_msg **c.Char) c.Int
- func (self *InitConfig) ExitCode(exitcode *c.Int) c.Int
- func (self *InitConfig) Free()
- func (self *InitConfig) HasOption(name *c.Char) c.Int
- func (self *InitConfig) Int(name *c.Char, value *c.Int64T) c.Int
- func (self *InitConfig) SetInt(name *c.Char, value c.Int64T) c.Int
- func (self *InitConfig) SetStr(name *c.Char, value *c.Char) c.Int
- func (self *InitConfig) SetStrList(name *c.Char, length c.SizeT, items **c.Char) c.Int
- func (self *InitConfig) Str(name *c.Char, value **c.Char) c.Int
- func (self *InitConfig) StrList(name *c.Char, length *c.SizeT, items ***c.Char) c.Int
- type Initproc
- type Inquiry
- type InstanceMethodObject
- type InterpreterConfig
- type InterpreterState
- type IntptrT
- type Iternextfunc
- type Lenfunc
- type ListObject
- func (self *ListObject) Append(_llcppg_param2 *Object) c.Int
- func (self *ListObject) AsTuple() *Object
- func (self *ListObject) Clear() c.Int
- func (self *ListObject) Extend(iterable *Object) c.Int
- func (self *ListObject) Insert(_llcppg_param2 SsizeT, _llcppg_param3 *Object) c.Int
- func (self *ListObject) Item(_llcppg_param2 SsizeT) *Object
- func (self *ListObject) ItemRef(_llcppg_param2 SsizeT) *Object
- func (self *ListObject) Reverse() c.Int
- func (self *ListObject) SetItem(_llcppg_param2 SsizeT, _llcppg_param3 *Object) c.Int
- func (self *ListObject) SetSlice(_llcppg_param2 SsizeT, _llcppg_param3 SsizeT, _llcppg_param4 *Object) c.Int
- func (self *ListObject) Size() SsizeT
- func (self *ListObject) Slice(_llcppg_param2 SsizeT, _llcppg_param3 SsizeT) *Object
- func (self *ListObject) Sort() c.Int
- type LockStatus
- type LongExport
- type LongLayout
- type LongObject
- func LongFromDouble(_llcppg_param1 c.Double) *LongObject
- func LongFromInt32(value c.Int32T) *LongObject
- func LongFromInt64(value c.Int64T) *LongObject
- func LongFromLong(_llcppg_param1 c.Long) *LongObject
- func LongFromLongLong(_llcppg_param1 c.LongLong) *LongObject
- func LongFromNativeBytes(buffer unsafe.Pointer, n_bytes c.SizeT, flags c.Int) *LongObject
- func LongFromSizeT(_llcppg_param1 c.SizeT) *LongObject
- func LongFromSsizeT(_llcppg_param1 SsizeT) *LongObject
- func LongFromString(_llcppg_param1 *c.Char, _llcppg_param2 **c.Char, _llcppg_param3 c.Int) *LongObject
- func LongFromUInt32(value c.Uint32T) *LongObject
- func LongFromUInt64(value c.Uint64T) *LongObject
- func LongFromUnicodeObject(u *Object, base c.Int) *LongObject
- func LongFromUnsignedLong(_llcppg_param1 c.Ulong) *LongObject
- func LongFromUnsignedLongLong(_llcppg_param1 c.UlongLong) *LongObject
- func LongFromUnsignedNativeBytes(buffer unsafe.Pointer, n_bytes c.SizeT, flags c.Int) *LongObject
- func LongFromVoidPtr(_llcppg_param1 unsafe.Pointer) *LongObject
- func X_LongFromDigits(negative c.Int, digit_count SsizeT, digits *Digit) *LongObject
- func X_LongNew(_llcppg_param1 SsizeT) *LongObject
- func (self *LongObject) As() c.Long
- func (self *LongObject) AsDouble() c.Double
- func (self *LongObject) AsInt() c.Int
- func (self *LongObject) AsInt32(value *c.Int32T) c.Int
- func (self *LongObject) AsInt64(value *c.Int64T) c.Int
- func (self *LongObject) AsLong() c.LongLong
- func (self *LongObject) AsLongAndOverflow(_llcppg_param2 *c.Int) c.Long
- func (self *LongObject) AsLongLongAndOverflow(_llcppg_param2 *c.Int) c.LongLong
- func (self *LongObject) AsNativeBytes(buffer unsafe.Pointer, n_bytes SsizeT, flags c.Int) SsizeT
- func (self *LongObject) AsSizeT() c.SizeT
- func (self *LongObject) AsSsizeT() SsizeT
- func (self *LongObject) AsUInt32(value *c.Uint32T) c.Int
- func (self *LongObject) AsUInt64(value *c.Uint64T) c.Int
- func (self *LongObject) AsUnsigned() c.Ulong
- func (self *LongObject) AsUnsignedLong() c.UlongLong
- func (self *LongObject) AsUnsignedLongLongMask() c.UlongLong
- func (self *LongObject) AsUnsignedLongMask() c.Ulong
- func (self *LongObject) AsVoidPtr() unsafe.Pointer
- func (self *LongObject) Export(export_long *LongExport) c.Int
- func (self *LongObject) IsNegative() c.Int
- func (self *LongObject) IsPositive() c.Int
- func (self *LongObject) IsZero() c.Int
- func (self *LongObject) Sign(sign *c.Int) c.Int
- type LongWriter
- type MappingMethods
- type MemAllocatorDomain
- type MemAllocatorEx
- type MemAllocatorName
- type MemberDef
- type MemberDescrObject
- type MemoryViewObject
- type MethodDef
- type MethodDescrObject
- type MethodObject
- type ModuleDef
- type ModuleDefBase
- type ModuleDefSlot
- type MonitoringState
- type Mutex
- type NameErrorObject
- type Newfunc
- type NumberMethods
- type ODictObject
- type OSErrorObject
- type OSSighandlerT
- type Object
- func AsyncGenNew(_llcppg_param1 *FrameObject, name *Object, qualname *Object) *Object
- func BoolFromLong(_llcppg_param1 c.Long) *Object
- func BuildValue(_llcppg_param1 *c.Char, __llgo_va_list ...any) *Object
- func BytesDecodeEscape(_llcppg_param1 *c.Char, _llcppg_param2 SsizeT, _llcppg_param3 *c.Char, ...) *Object
- func CallIterNew(_llcppg_param1 *Object, _llcppg_param2 *Object) *Object
- func CapsuleNew(pointer unsafe.Pointer, name *c.Char, destructor CapsuleDestructor) *Object
- func ClassMethodNew(_llcppg_param1 *Object) *Object
- func CodecBackslashReplaceErrors(exc *Object) *Object
- func CodecDecode(object *Object, encoding *c.Char, errors *c.Char) *Object
- func CodecDecoder(encoding *c.Char) *Object
- func CodecEncode(object *Object, encoding *c.Char, errors *c.Char) *Object
- func CodecEncoder(encoding *c.Char) *Object
- func CodecIgnoreErrors(exc *Object) *Object
- func CodecIncrementalDecoder(encoding *c.Char, errors *c.Char) *Object
- func CodecIncrementalEncoder(encoding *c.Char, errors *c.Char) *Object
- func CodecLookupError(name *c.Char) *Object
- func CodecNameReplaceErrors(exc *Object) *Object
- func CodecReplaceErrors(exc *Object) *Object
- func CodecStreamReader(encoding *c.Char, stream *Object, errors *c.Char) *Object
- func CodecStreamWriter(encoding *c.Char, stream *Object, errors *c.Char) *Object
- func CodecStrictErrors(exc *Object) *Object
- func CodecXMLCharRefReplaceErrors(exc *Object) *Object
- func CompileString(_llcppg_param1 *c.Char, _llcppg_param2 *c.Char, _llcppg_param3 c.Int) *Object
- func CompileStringExFlags(str *c.Char, filename *c.Char, start c.Int, flags *CompilerFlags, ...) *Object
- func CompileStringFlags(str *c.Char, filename *c.Char, start c.Int, flags *CompilerFlags) *Object
- func CompileStringObject(str *c.Char, filename *Object, start c.Int, flags *CompilerFlags, ...) *Object
- func ConfigGet(name *c.Char) *Object
- func ConfigNames() *Object
- func ContextCopyCurrent() *Object
- func ContextNew() *Object
- func ContextVarNew(name *c.Char, default_value *Object) *Object
- func CoroNew(_llcppg_param1 *FrameObject, name *Object, qualname *Object) *Object
- func DictProxyNew(_llcppg_param1 *Object) *Object
- func ErrFormat(exception *Object, format *c.Char, __llgo_va_list ...any) *Object
- func ErrGetHandledException() *Object
- func ErrGetRaisedException() *Object
- func ErrNewException(name *c.Char, base *Object, dict *Object) *Object
- func ErrNewExceptionWithDoc(name *c.Char, doc *c.Char, base *Object, dict *Object) *Object
- func ErrNoMemory() *Object
- func ErrOccurred() *Object
- func ErrProgramText(filename *c.Char, lineno c.Int) *Object
- func ErrProgramTextObject(filename *Object, lineno c.Int) *Object
- func ErrSetFromErrno(_llcppg_param1 *Object) *Object
- func ErrSetFromErrnoWithFilename(exc *Object, filename *c.Char) *Object
- func ErrSetFromErrnoWithFilenameObject(_llcppg_param1 *Object, _llcppg_param2 *Object) *Object
- func ErrSetFromErrnoWithFilenameObjects(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) *Object
- func ErrSetImportError(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) *Object
- func ErrSetImportErrorSubclass(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object, ...) *Object
- func Err_FormatV(exception *Object, format *c.Char, vargs c.VaList) *Object
- func EvalCode(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) *Object
- func EvalCodeEx(co *Object, globals *Object, locals *Object, args **Object, argc c.Int, ...) *Object
- func EvalFrame(_llcppg_param1 *FrameObject) *Object
- func EvalFrameEx(f *FrameObject, exc c.Int) *Object
- func EvalGetBuiltins() *Object
- func EvalGetFrameBuiltins() *Object
- func EvalGetFrameGlobals() *Object
- func EvalGetFrameLocals() *Object
- func EvalGetGlobals() *Object
- func EvalGetLocals() *Object
- func ExceptionGetArgs(_llcppg_param1 *Object) *Object
- func ExceptionGetCause(_llcppg_param1 *Object) *Object
- func ExceptionGetContext(_llcppg_param1 *Object) *Object
- func ExceptionGetTraceback(_llcppg_param1 *Object) *Object
- func FileFromFd(_llcppg_param1 c.Int, _llcppg_param2 *c.Char, _llcppg_param3 *c.Char, ...) *Object
- func FileGetLine(_llcppg_param1 *Object, _llcppg_param2 c.Int) *Object
- func FileNewStdPrinter(_llcppg_param1 c.Int) *Object
- func FileOpenCode(utf8path *c.Char) *Object
- func FileOpenCodeObject(path *Object) *Object
- func FloatGetInfo() *Object
- func FrozenSetNew(_llcppg_param1 *Object) *Object
- func GenNew(_llcppg_param1 *FrameObject) *Object
- func GenericAlias(_llcppg_param1 *Object, _llcppg_param2 *Object) *Object
- func GetConstant(constant_id c.Uint) *Object
- func GetConstantBorrowed(constant_id c.Uint) *Object
- func Import(name *Object) *Object
- func ImportAddModule(name *c.Char) *Object
- func ImportAddModuleObject(name *Object) *Object
- func ImportAddModuleRef(name *c.Char) *Object
- func ImportExecCodeModule(name *c.Char, co *Object) *Object
- func ImportExecCodeModuleEx(name *c.Char, co *Object, pathname *c.Char) *Object
- func ImportExecCodeModuleObject(name *Object, co *Object, pathname *Object, cpathname *Object) *Object
- func ImportExecCodeModuleWithPathnames(name *c.Char, co *Object, pathname *c.Char, cpathname *c.Char) *Object
- func ImportGetImporter(path *Object) *Object
- func ImportGetModule(name *Object) *Object
- func ImportGetModuleDict() *Object
- func ImportImportModule(name *c.Char) *Object
- func ImportImportModuleAttrString(mod_name *c.Char, attr_name *c.Char) *Object
- func ImportImportModuleLevel(name *c.Char, globals *Object, locals *Object, fromlist *Object, level c.Int) *Object
- func ImportImportModuleLevelObject(name *Object, globals *Object, locals *Object, fromlist *Object, level c.Int) *Object
- func ImportImportModuleNoBlock(name *c.Char) *Object
- func IterNext(_llcppg_param1 *Object) *Object
- func LongGetInfo() *Object
- func MappingGetItemString(o *Object, key *c.Char) *Object
- func MappingItems(o *Object) *Object
- func MappingKeys(o *Object) *Object
- func MappingValues(o *Object) *Object
- func MemberGetOne(_llcppg_param1 *c.Char, _llcppg_param2 *MemberDef) *Object
- func ModuleCreate2(_llcppg_param1 *ModuleDef, apiver c.Int) *Object
- func ModuleFromDefAndSpec2(def *ModuleDef, spec *Object, module_api_version c.Int) *Object
- func ModuleGetDict(_llcppg_param1 *Object) *Object
- func ModuleGetFilenameObject(_llcppg_param1 *Object) *Object
- func ModuleGetNameObject(_llcppg_param1 *Object) *Object
- func ModuleNew(name *c.Char) *Object
- func ModuleNewObject(name *Object) *Object
- func NewRef(obj *Object) *Object
- func NumberAbsolute(o *Object) *Object
- func NumberAdd(o1 *Object, o2 *Object) *Object
- func NumberAnd(o1 *Object, o2 *Object) *Object
- func NumberDivmod(o1 *Object, o2 *Object) *Object
- func NumberFloat(o *Object) *Object
- func NumberFloorDivide(o1 *Object, o2 *Object) *Object
- func NumberInPlaceAdd(o1 *Object, o2 *Object) *Object
- func NumberInPlaceAnd(o1 *Object, o2 *Object) *Object
- func NumberInPlaceFloorDivide(o1 *Object, o2 *Object) *Object
- func NumberInPlaceLshift(o1 *Object, o2 *Object) *Object
- func NumberInPlaceMatrixMultiply(o1 *Object, o2 *Object) *Object
- func NumberInPlaceMultiply(o1 *Object, o2 *Object) *Object
- func NumberInPlaceOr(o1 *Object, o2 *Object) *Object
- func NumberInPlacePower(o1 *Object, o2 *Object, o3 *Object) *Object
- func NumberInPlaceRemainder(o1 *Object, o2 *Object) *Object
- func NumberInPlaceRshift(o1 *Object, o2 *Object) *Object
- func NumberInPlaceSubtract(o1 *Object, o2 *Object) *Object
- func NumberInPlaceTrueDivide(o1 *Object, o2 *Object) *Object
- func NumberInPlaceXor(o1 *Object, o2 *Object) *Object
- func NumberIndex(o *Object) *Object
- func NumberInvert(o *Object) *Object
- func NumberLong(o *Object) *Object
- func NumberLshift(o1 *Object, o2 *Object) *Object
- func NumberMatrixMultiply(o1 *Object, o2 *Object) *Object
- func NumberMultiply(o1 *Object, o2 *Object) *Object
- func NumberNegative(o *Object) *Object
- func NumberOr(o1 *Object, o2 *Object) *Object
- func NumberPositive(o *Object) *Object
- func NumberPower(o1 *Object, o2 *Object, o3 *Object) *Object
- func NumberRemainder(o1 *Object, o2 *Object) *Object
- func NumberRshift(o1 *Object, o2 *Object) *Object
- func NumberSubtract(o1 *Object, o2 *Object) *Object
- func NumberToBase(n *Object, base c.Int) *Object
- func NumberTrueDivide(o1 *Object, o2 *Object) *Object
- func NumberXor(o1 *Object, o2 *Object) *Object
- func ODictNew() *Object
- func OS_FSPath(path *Object) *Object
- func PickleBufferFromObject(_llcppg_param1 *Object) *Object
- func RunFile(fp *c.FILE, p *c.Char, s c.Int, g *Object, l *Object) *Object
- func RunFileEx(fp *c.FILE, p *c.Char, s c.Int, g *Object, l *Object, c c.Int) *Object
- func RunFileExFlags(fp *c.FILE, filename *c.Char, start c.Int, globals *Object, locals *Object, ...) *Object
- func RunFileFlags(fp *c.FILE, p *c.Char, s c.Int, g *Object, l *Object, flags *CompilerFlags) *Object
- func RunString(str *c.Char, s c.Int, g *Object, l *Object) *Object
- func RunStringFlags(_llcppg_param1 *c.Char, _llcppg_param2 c.Int, _llcppg_param3 *Object, ...) *Object
- func SeqIterNew(_llcppg_param1 *Object) *Object
- func SequenceConcat(o1 *Object, o2 *Object) *Object
- func SequenceFast(o *Object, m *c.Char) *Object
- func SequenceGetItem(o *Object, i SsizeT) *Object
- func SequenceGetSlice(o *Object, i1 SsizeT, i2 SsizeT) *Object
- func SequenceInPlaceConcat(o1 *Object, o2 *Object) *Object
- func SequenceInPlaceRepeat(o *Object, count SsizeT) *Object
- func SequenceList(o *Object) *Object
- func SequenceRepeat(o *Object, count SsizeT) *Object
- func SequenceTuple(o *Object) *Object
- func StateFindModule(_llcppg_param1 *ModuleDef) *Object
- func StaticMethodNew(_llcppg_param1 *Object) *Object
- func StructSequenceNew(type_ *TypeObject) *Object
- func SysGetObject(_llcppg_param1 *c.Char) *Object
- func SysGetXOptions() *Object
- func ThreadGetInfo() *Object
- func ThreadStateGetDict() *Object
- func TuplePack(_llcppg_param1 SsizeT, __llgo_va_list ...any) *Object
- func UnicodeDecode(s *c.Char, size SsizeT, encoding *c.Char, errors *c.Char) *Object
- func UnicodeDecodeCharmap(string *c.Char, length SsizeT, mapping *Object, errors *c.Char) *Object
- func UnicodeDecodeErrorCreate(encoding *c.Char, object *c.Char, length SsizeT, start SsizeT, end SsizeT, ...) *Object
- func UnicodeDecodeErrorGetEncoding(_llcppg_param1 *Object) *Object
- func UnicodeDecodeErrorGetObject(_llcppg_param1 *Object) *Object
- func UnicodeDecodeErrorGetReason(_llcppg_param1 *Object) *Object
- func UnicodeDecodeFSDefault(s *c.Char) *Object
- func UnicodeDecodeFSDefaultAndSize(s *c.Char, size SsizeT) *Object
- func UnicodeDecodeLatin1(string *c.Char, length SsizeT, errors *c.Char) *Object
- func UnicodeDecodeLocale(str *c.Char, errors *c.Char) *Object
- func UnicodeDecodeLocaleAndSize(str *c.Char, len SsizeT, errors *c.Char) *Object
- func UnicodeDecodeRawUnicodeEscape(string *c.Char, length SsizeT, errors *c.Char) *Object
- func UnicodeDecodeUTF7(string *c.Char, length SsizeT, errors *c.Char) *Object
- func UnicodeDecodeUTF7Stateful(string *c.Char, length SsizeT, errors *c.Char, consumed *SsizeT) *Object
- func UnicodeDecodeUTF8(string *c.Char, length SsizeT, errors *c.Char) *Object
- func UnicodeDecodeUTF8Stateful(string *c.Char, length SsizeT, errors *c.Char, consumed *SsizeT) *Object
- func UnicodeDecodeUTF16(string *c.Char, length SsizeT, errors *c.Char, byteorder *c.Int) *Object
- func UnicodeDecodeUTF16Stateful(string *c.Char, length SsizeT, errors *c.Char, byteorder *c.Int, ...) *Object
- func UnicodeDecodeUTF32(string *c.Char, length SsizeT, errors *c.Char, byteorder *c.Int) *Object
- func UnicodeDecodeUTF32Stateful(string *c.Char, length SsizeT, errors *c.Char, byteorder *c.Int, ...) *Object
- func UnicodeDecodeUnicodeEscape(string *c.Char, length SsizeT, errors *c.Char) *Object
- func UnicodeEncodeErrorGetEncoding(_llcppg_param1 *Object) *Object
- func UnicodeEncodeErrorGetObject(_llcppg_param1 *Object) *Object
- func UnicodeEncodeErrorGetReason(_llcppg_param1 *Object) *Object
- func UnicodeInternFromString(u *c.Char) *Object
- func UnicodeTranslateErrorGetObject(_llcppg_param1 *Object) *Object
- func UnicodeTranslateErrorGetReason(_llcppg_param1 *Object) *Object
- func Unicode_DecodeASCII(string *c.Char, length SsizeT, errors *c.Char) *Object
- func UnstableExcPrepReraiseStar(orig *Object, excs *Object) *Object
- func UnstableInterpreterFrameGetCode(frame *X_InterpreterFrame) *Object
- func Unstable_Object_GC_NewWithExtraData(_llcppg_param1 *TypeObject, _llcppg_param2 c.SizeT) *Object
- func VaBuildValue(_llcppg_param1 *c.Char, _llcppg_param2 c.VaList) *Object
- func VectorcallCall(callable *Object, tuple *Object, dict *Object) *Object
- func WeakrefGetObject(ref *Object) *Object
- func WeakrefNewProxy(ob *Object, callback *Object) *Object
- func WeakrefNewRef(ob *Object, callback *Object) *Object
- func WrapperNew(_llcppg_param1 *Object, _llcppg_param2 *Object) *Object
- func XNewRef(obj *Object) *Object
- func X_CodeConstantKey(obj *Object) *Object
- func X_DictGetItemKnownHash(mp *Object, key *Object, hash HashT) *Object
- func X_DictGetItemStringWithError(_llcppg_param1 *Object, _llcppg_param2 *c.Char) *Object
- func X_DictNewPresized(minused SsizeT) *Object
- func X_DictPop(dict *Object, key *Object, default_value *Object) *Object
- func X_EvalFrameDefault(tstate *ThreadState, f *X_InterpreterFrame, exc c.Int) *Object
- func X_LongCopy(src *LongObject) *Object
- func X_LongFromByteArray(bytes *uint8, n c.SizeT, little_endian c.Int, is_signed c.Int) *Object
- func X_Long_GCD(_llcppg_param1 *Object, _llcppg_param2 *Object) *Object
- func X_ObjectCallMethodId(obj *Object, name *X_Identifier, format *c.Char, __llgo_va_list ...any) *Object
- func X_ObjectFunctionStr(_llcppg_param1 *Object) *Object
- func X_ObjectGenericGetAttrWithDict(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object, ...) *Object
- func X_ObjectGetAttrId(_llcppg_param1 *Object, _llcppg_param2 *X_Identifier) *Object
- func X_ObjectGetDictPtr(_llcppg_param1 *Object) **Object
- func X_ObjectNew(_llcppg_param1 *TypeObject) *Object
- func X_Object_GC_New(_llcppg_param1 *TypeObject) *Object
- func X_SliceFromIndices(start SsizeT, stop SsizeT) *Object
- func X_StackAsDict(values **Object, kwnames *Object) *Object
- func X_ThreadCurrentFrames() *Object
- func X_TypeLookup(_llcppg_param1 *TypeObject, _llcppg_param2 *Object) *Object
- func X_TypeLookupRef(_llcppg_param1 *TypeObject, _llcppg_param2 *Object) *Object
- func X_UnicodeFromId(_llcppg_param1 *X_Identifier) *Object
- func X_UnicodeWriterFinish(writer *X_UnicodeWriter) *Object
- func (self *Object) AIter() *Object
- func (self *Object) ASCII() *Object
- func (self *Object) AsByteArray() *ByteArrayObject
- func (self *Object) AsBytes() *BytesObject
- func (self *Object) AsFileDescriptor() c.Int
- func (self *Object) AsMemoryView() *MemoryViewObject
- func (self *Object) AsUnicode() *UnicodeObject
- func (self *Object) Attr(_llcppg_param2 *Object) *Object
- func (self *Object) AttrString(_llcppg_param2 *c.Char) *Object
- func (self *Object) Buffer(view *Buffer, flags c.Int) c.Int
- func (self *Object) Bytes() *Object
- func (self *Object) Call(args *Object, kwargs *Object) *Object
- func (self *Object) CallFinalizer()
- func (self *Object) CallFinalizerFromDealloc() c.Int
- func (self *Object) CallFunction(format *c.Char, __llgo_va_list ...any) *Object
- func (self *Object) CallFunctionObjArgs(__llgo_va_list ...any) *Object
- func (self *Object) CallMethod(name *c.Char, format *c.Char, __llgo_va_list ...any) *Object
- func (self *Object) CallMethodObjArgs(name *Object, __llgo_va_list ...any) *Object
- func (self *Object) CallNoArgs() *Object
- func (self *Object) CallObject(args *Object) *Object
- func (self *Object) CallOneArg(arg *Object) *Object
- func (self *Object) CheckBuffer() c.Int
- func (self *Object) ClearManagedDict()
- func (self *Object) ClearWeakRefs()
- func (self *Object) ContextCopy() *Object
- func (self *Object) ContextEnter() c.Int
- func (self *Object) ContextExit() c.Int
- func (self *Object) ContextVarGet(default_value *Object, value **Object) c.Int
- func (self *Object) ContextVarReset(token *Object) c.Int
- func (self *Object) ContextVarSet(value *Object) *Object
- func (self *Object) CopyData(src *Object) c.Int
- func (self *Object) DelAttr(name *Object) c.Int
- func (self *Object) DelAttrString(name *c.Char) c.Int
- func (self *Object) DelItem(key *Object) c.Int
- func (self *Object) DelItemString(key *c.Char) c.Int
- func (self *Object) Dir() *Object
- func (self *Object) Format(format_spec *Object) *Object
- func (self *Object) GC_IsFinalized() c.Int
- func (self *Object) GC_IsTracked() c.Int
- func (self *Object) GET_WEAKREFS_LISTPTR() **Object
- func (self *Object) GenericGetAttr(_llcppg_param2 *Object) *Object
- func (self *Object) GenericGetDict(_llcppg_param2 unsafe.Pointer) *Object
- func (self *Object) GenericHash() HashT
- func (self *Object) GenericSetAttr(_llcppg_param2 *Object, _llcppg_param3 *Object) c.Int
- func (self *Object) GenericSetDict(_llcppg_param2 *Object, _llcppg_param3 unsafe.Pointer) c.Int
- func (self *Object) HasAttr(_llcppg_param2 *Object) c.Int
- func (self *Object) HasAttrString(_llcppg_param2 *c.Char) c.Int
- func (self *Object) HasAttrStringWithError(_llcppg_param2 *c.Char) c.Int
- func (self *Object) HasAttrWithError(_llcppg_param2 *Object) c.Int
- func (self *Object) Hash() HashT
- func (self *Object) HashNotImplemented() HashT
- func (self *Object) IS_GC() c.Int
- func (self *Object) ImportFrozenModuleObject() c.Int
- func (self *Object) ImportImportModuleAttr(attr_name *Object) *Object
- func (self *Object) ImportReloadModule() *Object
- func (self *Object) Init(_llcppg_param2 *TypeObject) *Object
- func (self *Object) IsInstance(typeorclass *Object) c.Int
- func (self *Object) IsSubclass(typeorclass *Object) c.Int
- func (self *Object) IsTrue() c.Int
- func (self *Object) Item(key *Object) *Object
- func (self *Object) ItemData() unsafe.Pointer
- func (self *Object) Iter() *Object
- func (self *Object) Length() SsizeT
- func (self *Object) LengthHint(_llcppg_param2 SsizeT) SsizeT
- func (self *Object) Not() c.Int
- func (self *Object) ODictDelItem(key *Object) c.Int
- func (self *Object) ODictSetItem(key *Object, item *Object) c.Int
- func (self *Object) OptionalAttr(_llcppg_param2 *Object, _llcppg_param3 **Object) c.Int
- func (self *Object) OptionalAttrString(_llcppg_param2 *c.Char, _llcppg_param3 **Object) c.Int
- func (self *Object) Print(_llcppg_param2 *c.FILE, _llcppg_param3 c.Int) c.Int
- func (self *Object) Repr() *Object
- func (self *Object) RichCompare(_llcppg_param2 *Object, _llcppg_param3 c.Int) *Object
- func (self *Object) RichCompareBool(_llcppg_param2 *Object, _llcppg_param3 c.Int) c.Int
- func (self *Object) SelfIter() *Object
- func (self *Object) SetAttr(_llcppg_param2 *Object, _llcppg_param3 *Object) c.Int
- func (self *Object) SetAttrString(_llcppg_param2 *c.Char, _llcppg_param3 *Object) c.Int
- func (self *Object) SetItem(key *Object, v *Object) c.Int
- func (self *Object) Size() SsizeT
- func (self *Object) Str() *Object
- func (self *Object) Type() *Object
- func (self *Object) TypeData(cls *TypeObject) unsafe.Pointer
- func (self *Object) Vectorcall(args **Object, nargsf c.SizeT, kwnames *Object) *Object
- func (self *Object) VectorcallDict(args **Object, nargsf c.SizeT, kwargs *Object) *Object
- func (self *Object) VectorcallMethod(args **Object, nargsf c.SizeT, kwnames *Object) *Object
- func (self *Object) VisitManagedDict(visit Visitproc, arg unsafe.Pointer) c.Int
- type ObjectArenaAllocator
- type Objobjargproc
- type Objobjproc
- type OpenCodeHookFunction
- type PY_UNICODE_TYPE
- type PerfMapState
- type PreConfig
- type Printfunc
- type RefTracer
- type RefTracerEvent
- type Releasebufferproc
- type Reprfunc
- type Richcmpfunc
- type Sdigit
- type SendResult
- type Sendfunc
- type SequenceMethods
- type SetObject
- type Setattrfunc
- type Setattrofunc
- type Setentry
- type Setter
- type SliceObject
- type SsizeCleanT
- type SsizeT
- func BufferSizeFromFormat(format *c.Char) SsizeT
- func GC_Collect() SsizeT
- func MappingLength(o *Object) SsizeT
- func MappingSize(o *Object) SsizeT
- func NumberAsSsizeT(o *Object, exc *Object) SsizeT
- func REFCNT(ob *Object) SsizeT
- func SequenceCount(o *Object, value *Object) SsizeT
- func SequenceIndex(o *Object, value *Object) SsizeT
- func SequenceLength(o *Object) SsizeT
- func SequenceSize(o *Object) SsizeT
- func SliceAdjustIndices(length SsizeT, start *SsizeT, stop *SsizeT, step SsizeT) SsizeT
- func UnstableEvalRequestCodeExtraIndex(_llcppg_param1 Freefunc) SsizeT
- func UnstableLongCompactValue(op *LongObject) SsizeT
- func Vectorcall_NARGS(nargsf c.SizeT) SsizeT
- type Ssizeargfunc
- type Ssizeobjargproc
- type Ssizessizeargfunc
- type Ssizessizeobjargproc
- type Status
- func InitializeFromConfig(config *Config) Status
- func NewInterpreterFromConfig(tstate_p **ThreadState, config *InterpreterConfig) Status
- func PreInitialize(src_config *PreConfig) Status
- func PreInitializeFromArgs(src_config *PreConfig, argc SsizeT, argv **c.WcharT) Status
- func PreInitializeFromBytesArgs(src_config *PreConfig, argc SsizeT, argv **c.Char) Status
- func StatusError(err_msg *c.Char) Status
- func StatusExit(exitcode c.Int) Status
- func StatusNoMemory() Status
- func StatusOk() Status
- type StopIterationObject
- type StructSequence
- type StructSequenceDesc
- type StructSequenceField
- type Stwodigits
- type SyntaxErrorObject
- type SystemExitObject
- type Ternaryfunc
- type ThreadState
- func (self *ThreadState) Clear()
- func (self *ThreadState) Delete()
- func (self *ThreadState) EnterTracing()
- func (self *ThreadState) Frame() *FrameObject
- func (self *ThreadState) ID() c.Uint64T
- func (self *ThreadState) Interpreter() *InterpreterState
- func (self *ThreadState) LeaveTracing()
- func (self *ThreadState) Swap() *ThreadState
- func (self *ThreadState) ThreadStateNext() *ThreadState
- type ThreadTypeLock
- type TimeT
- type TracebackObject
- type Tracefunc
- type Traverseproc
- type TssT
- type TupleObject
- type Twodigits
- type TypeObject
- func TYPE(ob *Object) *TypeObject
- func TypeFromMetaclass(_llcppg_param1 *TypeObject, _llcppg_param2 *Object, _llcppg_param3 *TypeSpec, ...) *TypeObject
- func TypeFromModuleAndSpec(_llcppg_param1 *Object, _llcppg_param2 *TypeSpec, _llcppg_param3 *Object) *TypeObject
- func TypeFromSpec(_llcppg_param1 *TypeSpec) *TypeObject
- func TypeFromSpecWithBases(_llcppg_param1 *TypeSpec, _llcppg_param2 *Object) *TypeObject
- func (self *TypeObject) BaseByToken(_llcppg_param2 unsafe.Pointer, _llcppg_param3 **TypeObject) c.Int
- func (self *TypeObject) DataSize() SsizeT
- func (self *TypeObject) DescrNewClassMethod(_llcppg_param2 *MethodDef) *Object
- func (self *TypeObject) DescrNewGetSet(_llcppg_param2 *GetSetDef) *Object
- func (self *TypeObject) DescrNewMember(_llcppg_param2 *MemberDef) *Object
- func (self *TypeObject) DescrNewMethod(_llcppg_param2 *MethodDef) *Object
- func (self *TypeObject) DescrNewWrapper(_llcppg_param2 *Wrapperbase, _llcppg_param3 unsafe.Pointer) *Object
- func (self *TypeObject) Dict() *Object
- func (self *TypeObject) Flags() c.Ulong
- func (self *TypeObject) Freeze() c.Int
- func (self *TypeObject) FullyQualifiedName() *Object
- func (self *TypeObject) GenericAlloc(_llcppg_param2 SsizeT) *Object
- func (self *TypeObject) GenericNew(_llcppg_param2 *Object, _llcppg_param3 *Object) *Object
- func (self *TypeObject) IsSubtype(_llcppg_param2 *TypeObject) c.Int
- func (self *TypeObject) Modified()
- func (self *TypeObject) Module() *Object
- func (self *TypeObject) ModuleByDef(_llcppg_param2 *ModuleDef) *Object
- func (self *TypeObject) ModuleName() *Object
- func (self *TypeObject) ModuleState() unsafe.Pointer
- func (self *TypeObject) Name() *Object
- func (self *TypeObject) QualName() *Object
- func (self *TypeObject) Ready() c.Int
- func (self *TypeObject) Slot(_llcppg_param2 c.Int) unsafe.Pointer
- func (self *TypeObject) StructSequenceInit(desc *StructSequenceDesc)
- func (self *TypeObject) StructSequenceInitType2(desc *StructSequenceDesc) c.Int
- func (self *TypeObject) Type_SUPPORTS_WEAKREFS() c.Int
- type TypeSlot
- type TypeSpec
- type TypeWatchCallback
- type UCS1
- type UCS2
- type UCS4
- type UNICODE
- type UhashT
- type UintptrT
- type Unaryfunc
- type UnicodeErrorObject
- type UnicodeKind
- type UnicodeObject
- func NewUnicode(size SsizeT, maxchar UCS4) *UnicodeObject
- func UnicodeFromEncodedObject(obj *Object, encoding *c.Char, errors *c.Char) *UnicodeObject
- func UnicodeFromFormat(format *c.Char, __llgo_va_list ...any) *UnicodeObject
- func UnicodeFromFormatV(format *c.Char, vargs c.VaList) *UnicodeObject
- func UnicodeFromKindAndData(kind c.Int, buffer unsafe.Pointer, size SsizeT) *UnicodeObject
- func UnicodeFromOrdinal(ordinal c.Int) *UnicodeObject
- func UnicodeFromString(u *c.Char) *UnicodeObject
- func UnicodeFromStringAndSize(u *c.Char, size SsizeT) *UnicodeObject
- func UnicodeFromWideChar(w *c.WcharT, size SsizeT) *UnicodeObject
- func (self *UnicodeObject) AsASCIIString() *Object
- func (self *UnicodeObject) AsCharmapString(mapping *Object) *Object
- func (self *UnicodeObject) AsDecoded(encoding *c.Char, errors *c.Char) *Object
- func (self *UnicodeObject) AsDecodedObject(encoding *c.Char, errors *c.Char) *Object
- func (self *UnicodeObject) AsEncoded(encoding *c.Char, errors *c.Char) *Object
- func (self *UnicodeObject) AsEncodedObject(encoding *c.Char, errors *c.Char) *Object
- func (self *UnicodeObject) AsEncodedString(encoding *c.Char, errors *c.Char) *Object
- func (self *UnicodeObject) AsLatin1String() *Object
- func (self *UnicodeObject) AsRawUnicodeEscapeString() *Object
- func (self *UnicodeObject) AsUCS4(buffer *UCS4, buflen SsizeT, copy_null c.Int) *UCS4
- func (self *UnicodeObject) AsUCS4Copy() *UCS4
- func (self *UnicodeObject) AsUTF8() *c.Char
- func (self *UnicodeObject) AsUTF8AndSize(size *SsizeT) *c.Char
- func (self *UnicodeObject) AsUTF8String() *Object
- func (self *UnicodeObject) AsUTF16String() *Object
- func (self *UnicodeObject) AsUTF32String() *Object
- func (self *UnicodeObject) AsUnicodeEscapeString() *Object
- func (self *UnicodeObject) AsWideChar(w *c.WcharT, size SsizeT) SsizeT
- func (self *UnicodeObject) AsWideCharString(size *SsizeT) *c.WcharT
- func (self *UnicodeObject) BuildEncodingMap() *Object
- func (self *UnicodeObject) Compare(right *Object) c.Int
- func (self *UnicodeObject) CompareWithASCIIString(right *c.Char) c.Int
- func (self *UnicodeObject) Concat(right *Object) *Object
- func (self *UnicodeObject) Contains(element *Object) c.Int
- func (self *UnicodeObject) CopyCharacters(to_start SsizeT, from *Object, from_start SsizeT, how_many SsizeT) SsizeT
- func (self *UnicodeObject) Count(substr *Object, start SsizeT, end SsizeT) SsizeT
- func (self *UnicodeObject) EncodeFSDefault() *Object
- func (self *UnicodeObject) EncodeLocale(errors *c.Char) *Object
- func (self *UnicodeObject) Equal(str2 *Object) c.Int
- func (self *UnicodeObject) EqualToUTF8(_llcppg_param2 *c.Char) c.Int
- func (self *UnicodeObject) EqualToUTF8AndSize(_llcppg_param2 *c.Char, _llcppg_param3 SsizeT) c.Int
- func (self *UnicodeObject) FSConverter(_llcppg_param2 unsafe.Pointer) c.Int
- func (self *UnicodeObject) FSDecoder(_llcppg_param2 unsafe.Pointer) c.Int
- func (self *UnicodeObject) Fill(start SsizeT, length SsizeT, fill_char UCS4) SsizeT
- func (self *UnicodeObject) Find(substr *Object, start SsizeT, end SsizeT, direction c.Int) SsizeT
- func (self *UnicodeObject) FindChar(ch UCS4, start SsizeT, end SsizeT, direction c.Int) SsizeT
- func (self *UnicodeObject) Format(args *Object) *Object
- func (self *UnicodeObject) IsIdentifier() c.Int
- func (self *UnicodeObject) Join(seq *Object) *Object
- func (self *UnicodeObject) Length() SsizeT
- func (self *UnicodeObject) Partition(sep *Object) *Object
- func (self *UnicodeObject) RPartition(sep *Object) *Object
- func (self *UnicodeObject) RSplit(sep *Object, maxsplit SsizeT) *Object
- func (self *UnicodeObject) ReadChar(index SsizeT) UCS4
- func (self *UnicodeObject) Replace(substr *Object, replstr *Object, maxcount SsizeT) *Object
- func (self *UnicodeObject) RichCompare(right *Object, op c.Int) *Object
- func (self *UnicodeObject) Split(sep *Object, maxsplit SsizeT) *Object
- func (self *UnicodeObject) Splitlines(keepends c.Int) *Object
- func (self *UnicodeObject) Substring(start SsizeT, end SsizeT) *Object
- func (self *UnicodeObject) Tailmatch(substr *Object, start SsizeT, end SsizeT, direction c.Int) SsizeT
- func (self *UnicodeObject) Translate(table *Object, errors *c.Char) *Object
- func (self *UnicodeObject) Unicode_DATA() unsafe.Pointer
- func (self *UnicodeObject) Unicode_KIND() c.Int
- func (self *UnicodeObject) WriteChar(index SsizeT, character UCS4) c.Int
- type UnicodeWriter
- func (self *UnicodeWriter) DecodeUTF8Stateful(string *c.Char, length SsizeT, errors *c.Char, consumed *SsizeT) c.Int
- func (self *UnicodeWriter) Discard()
- func (self *UnicodeWriter) Finish() *Object
- func (self *UnicodeWriter) Format(format *c.Char, __llgo_va_list ...any) c.Int
- func (self *UnicodeWriter) WriteASCII(str *c.Char, size SsizeT) c.Int
- func (self *UnicodeWriter) WriteChar(ch UCS4) c.Int
- func (self *UnicodeWriter) WriteRepr(obj *Object) c.Int
- func (self *UnicodeWriter) WriteStr(obj *Object) c.Int
- func (self *UnicodeWriter) WriteSubstring(str *Object, start SsizeT, end SsizeT) c.Int
- func (self *UnicodeWriter) WriteUCS4(str *UCS4, size SsizeT) c.Int
- func (self *UnicodeWriter) WriteUTF8(str *c.Char, size SsizeT) c.Int
- func (self *UnicodeWriter) WriteWideChar(str *c.WcharT, size SsizeT) c.Int
- type VarObject
- type Vectorcallfunc
- type Visitproc
- type WeakReference
- type WideStringList
- type WrapperDescrObject
- type Wrapperbase
- type Wrapperfunc
- type WrapperfuncKwds
- type X_ArgParser
- type X_AsyncGenObject
- type X_CFunctionFast
- type X_CFunctionFastWithKeywords
- type X_CoCached
- type X_CoMonitoringData
- type X_CodeLocationInfoKind
- type X_CoroObject
- type X_ErrStackItem
- type X_ExecutorArray
- type X_ExecutorObject
- type X_FrameEvalFunction
- type X_GenObject
- type X_Identifier
- type X_InterpreterFrame
- type X_LongValue
- type X_ManagedBufferObject
- type X_MonitoringState
- type X_OnceFlag
- type X_RemoteDebuggerSupport
- type X_StackChunk
- type X_UnicodeWriter
- type X_WeakReference
- type X_dictkeysobject
- type X_dictvalues
- type X_errStackitem
- type X_frame
- type X_frozen
- type X_heaptypeobject
- type X_inittab
- type X_is
- type X_lineOffsets
- type X_longobject
- type X_object
- type X_odictobject
- type X_opaque
- type X_pycontextobject
- type X_pycontexttokenobject
- type X_pycontextvarobject
- type X_specializationCache
- type X_stackChunk
- type X_traceback
- type X_ts
- type X_tssT
- type X_typeobject
Constants ¶
const ( X_Status_TYPE_OK _llcppg_anon_4 = 0 X_Status_TYPE_ERROR _llcppg_anon_4 = 1 X_Status_TYPE_EXIT _llcppg_anon_4 = 2 )
const ABI_STRING = "3"
const ABI_VERSION = 3
const ALIGNOF_LONG = 8
const ALIGNOF_MAX_ALIGN_T = 8
const ALIGNOF_SIZE_T = 8
const API_STRING = "1013"
const API_VERSION = 1013
const ASNATIVEBYTES_ALLOW_INDEX = 16
const ASNATIVEBYTES_BIG_ENDIAN = 0
const ASNATIVEBYTES_DEFAULTS = -1
const ASNATIVEBYTES_LITTLE_ENDIAN = 1
const ASNATIVEBYTES_NATIVE_ENDIAN = 3
const ASNATIVEBYTES_REJECT_NEGATIVE = 8
const ASNATIVEBYTES_UNSIGNED_BUFFER = 4
const AUDIT_READ = 2
const AmAiter = 78
const AmAnext = 79
const AmAwait = 77
const AmSend = 81
const BIG_ENDIAN = 0
const BUF_ANY_CONTIGUOUS = 152
const BUF_CONTIG = 9
const BUF_CONTIG_RO = 8
const BUF_C_CONTIGUOUS = 56
const BUF_FORMAT = 4
const BUF_FULL = 285
const BUF_FULL_RO = 284
const BUF_F_CONTIGUOUS = 88
const BUF_INDIRECT = 280
const BUF_MAX_NDIM = 64
const BUF_ND = 8
const BUF_READ = 256
const BUF_RECORDS = 29
const BUF_RECORDS_RO = 28
const BUF_SIMPLE = 0
const BUF_STRIDED = 25
const BUF_STRIDED_RO = 24
const BUF_STRIDES = 24
const BUF_WRITABLE = 1
const BUF_WRITE = 512
const BUF_WRITEABLE = 1
const BUILTIN_HASHLIB_HASHES = "md5,sha1,sha2,sha3,blake2"
const BfGetbuffer = 1
const BfReleasebuffer = 2
const CAN_START_THREADS = 1
const CF_ALLOW_INCOMPLETE_INPUT = 16384
const CF_ALLOW_TOP_LEVEL_AWAIT = 8192
const CF_COMPILE_MASK = 62976
const CF_DONT_IMPLY_DEDENT = 512
const CF_IGNORE_COOKIE = 2048
const CF_MASK = 33423360
const CF_MASK_OBSOLETE = 16
const CF_ONLY_AST = 1024
const CF_OPTIMIZED_AST = 33792
const CF_SOURCE_IS_UTF8 = 256
const CF_TYPE_COMMENTS = 4096
const CLEANUP_SUPPORTED = 131072
const COERCE_C_LOCALE = 1
const CONSTANT_ELLIPSIS = 3
const CONSTANT_EMPTY_BYTES = 8
const CONSTANT_EMPTY_STR = 7
const CONSTANT_EMPTY_TUPLE = 9
const CONSTANT_FALSE = 1
const CONSTANT_NONE = 0
const CONSTANT_NOT_IMPLEMENTED = 4
const CONSTANT_ONE = 6
const CONSTANT_TRUE = 2
const CONSTANT_ZERO = 5
const CO_ASYNC_GENERATOR = 512
const CO_COROUTINE = 128
const CO_FUTURE_ABSOLUTE_IMPORT = 262144
const CO_FUTURE_ANNOTATIONS = 16777216
const CO_FUTURE_BARRY_AS_BDFL = 4194304
const CO_FUTURE_DIVISION = 131072
const CO_FUTURE_GENERATOR_STOP = 8388608
const CO_FUTURE_PRINT_FUNCTION = 1048576
const CO_FUTURE_UNICODE_LITERALS = 2097152
const CO_FUTURE_WITH_STATEMENT = 524288
const CO_GENERATOR = 32
const CO_HAS_DOCSTRING = 67108864
const CO_ITERABLE_COROUTINE = 256
const CO_MAXBLOCKS = 21
const CO_METHOD = 134217728
const CO_NESTED = 16
const CO_NEWLOCALS = 2
const CO_NO_MONITORING_EVENTS = 33554432
const CO_OPTIMIZED = 1
const CO_VARARGS = 4
const CO_VARKEYWORDS = 8
const CTF_ALNUM = 7
const CTF_ALPHA = 3
const CTF_DIGIT = 4
const CTF_LOWER = 1
const CTF_SPACE = 8
const CTF_UPPER = 2
const CTF_XDIGIT = 16
const DOUBLE_IS_LITTLE_ENDIAN_IEEE754 = 1
const DTSF_ADD_DOT_0 = 2
const DTSF_ALT = 4
const DTSF_NO_NEG_0 = 8
const DTSF_SIGN = 1
const DTST_FINITE = 0
const DTST_INFINITE = 1
const DTST_NAN = 2
const ENABLE_IPV6 = 1
const EQ = 2
const EvalInput = 258
const FORMAT_SIZE_T = "z"
const FUTURE_ABSOLUTE_IMPORT = "absolute_import"
const FUTURE_ANNOTATIONS = "annotations"
const FUTURE_BARRY_AS_BDFL = "barry_as_FLUFL"
const FUTURE_DIVISION = "division"
const FUTURE_GENERATORS = "generators"
const FUTURE_GENERATOR_STOP = "generator_stop"
const FUTURE_NESTED_SCOPES = "nested_scopes"
const FUTURE_PRINT_FUNCTION = "print_function"
const FUTURE_UNICODE_LITERALS = "unicode_literals"
const FUTURE_WITH_STATEMENT = "with_statement"
const FVC_ASCII = 3
const FVC_MASK = 3
const FVC_NONE = 0
const FVC_REPR = 2
const FVC_STR = 1
const FVS_HAVE_SPEC = 4
const FVS_MASK = 4
const FileInput = 257
const FuncTypeInput = 345
const GE = 5
const GT = 4
const HASH_ALGORITHM = 3
const HASH_BITS = 61
const HASH_CUTOFF = 0
const HASH_EXTERNAL = 0
const HASH_FNV = 2
const HASH_INF = 314159
const HASH_SIPHASH13 = 3
const HASH_SIPHASH24 = 1
const HAVE_ACCEPT = 1
const HAVE_ACOSH = 1
const HAVE_ADDRINFO = 1
const HAVE_ALARM = 1
const HAVE_ALLOCA_H = 1
const HAVE_ASINH = 1
const HAVE_ATANH = 1
const HAVE_BACKTRACE = 1
const HAVE_BIND = 1
const HAVE_BROKEN_SEM_GETVALUE = 1
const HAVE_BUILTIN_ATOMIC = 1
const HAVE_CHFLAGS = 1
const HAVE_CHMOD = 1
const HAVE_CHOWN = 1
const HAVE_CHROOT = 1
const HAVE_CLOCK = 1
const HAVE_CLOCK_GETRES = 1
const HAVE_CLOCK_GETTIME = 1
const HAVE_CLOCK_SETTIME = 1
const HAVE_CLOCK_T = 1
const HAVE_COMPUTED_GOTOS = 1
const HAVE_CONFSTR = 1
const HAVE_CONNECT = 1
const HAVE_CTERMID = 1
const HAVE_CTERMID_R = 1
const HAVE_CURSES_ESCDELAY = 1
const HAVE_CURSES_FILTER = 1
const HAVE_CURSES_GETMOUSE = 1
const HAVE_CURSES_H = 1
const HAVE_CURSES_HAS_KEY = 1
const HAVE_CURSES_IMMEDOK = 1
const HAVE_CURSES_IS_PAD = 1
const HAVE_CURSES_IS_TERM_RESIZED = 1
const HAVE_CURSES_RESIZETERM = 1
const HAVE_CURSES_RESIZE_TERM = 1
const HAVE_CURSES_SET_ESCDELAY = 1
const HAVE_CURSES_SET_TABSIZE = 1
const HAVE_CURSES_SYNCOK = 1
const HAVE_CURSES_TABSIZE = 1
const HAVE_CURSES_TYPEAHEAD = 1
const HAVE_CURSES_USE_ENV = 1
const HAVE_CURSES_WCHGAT = 1
const HAVE_DB_H = 1
const HAVE_DECL_RTLD_DEEPBIND = 0
const HAVE_DECL_RTLD_GLOBAL = 1
const HAVE_DECL_RTLD_LAZY = 1
const HAVE_DECL_RTLD_LOCAL = 1
const HAVE_DECL_RTLD_MEMBER = 0
const HAVE_DECL_RTLD_NODELETE = 1
const HAVE_DECL_RTLD_NOLOAD = 1
const HAVE_DECL_RTLD_NOW = 1
const HAVE_DECL_UT_NAMESIZE = 1
const HAVE_DEVICE_MACROS = 1
const HAVE_DEV_PTMX = 1
const HAVE_DIRENT_D_TYPE = 1
const HAVE_DIRENT_H = 1
const HAVE_DIRFD = 1
const HAVE_DLADDR = 1
const HAVE_DLFCN_H = 1
const HAVE_DLOPEN = 1
const HAVE_DUP = 1
const HAVE_DUP2 = 1
const HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH = 1
const HAVE_DYNAMIC_LOADING = 1
const HAVE_ERF = 1
const HAVE_ERFC = 1
const HAVE_ERRNO_H = 1
const HAVE_EXECINFO_H = 1
const HAVE_EXECV = 1
const HAVE_EXPM1 = 1
const HAVE_FACCESSAT = 1
const HAVE_FCHDIR = 1
const HAVE_FCHMOD = 1
const HAVE_FCHMODAT = 1
const HAVE_FCHOWN = 1
const HAVE_FCHOWNAT = 1
const HAVE_FCNTL_H = 1
const HAVE_FDOPENDIR = 1
const HAVE_FFI_CLOSURE_ALLOC = 1
const HAVE_FFI_PREP_CIF_VAR = 1
const HAVE_FFI_PREP_CLOSURE_LOC = 1
const HAVE_FLOCK = 1
const HAVE_FORK = 1
const HAVE_FORKPTY = 1
const HAVE_FPATHCONF = 1
const HAVE_FSEEKO = 1
const HAVE_FSTATAT = 1
const HAVE_FSTATVFS = 1
const HAVE_FSYNC = 1
const HAVE_FTELLO = 1
const HAVE_FTIME = 1
const HAVE_FTRUNCATE = 1
const HAVE_FUTIMENS = 1
const HAVE_FUTIMES = 1
const HAVE_GAI_STRERROR = 1
const HAVE_GCC_UINT128_T = 1
const HAVE_GETADDRINFO = 1
const HAVE_GETC_UNLOCKED = 1
const HAVE_GETEGID = 1
const HAVE_GETENTROPY = 1
const HAVE_GETEUID = 1
const HAVE_GETGID = 1
const HAVE_GETGRENT = 1
const HAVE_GETGRGID = 1
const HAVE_GETGRGID_R = 1
const HAVE_GETGRNAM_R = 1
const HAVE_GETGROUPLIST = 1
const HAVE_GETGROUPS = 1
const HAVE_GETHOSTBYADDR = 1
const HAVE_GETHOSTBYNAME = 1
const HAVE_GETHOSTNAME = 1
const HAVE_GETITIMER = 1
const HAVE_GETLOADAVG = 1
const HAVE_GETLOGIN = 1
const HAVE_GETLOGIN_R = 1
const HAVE_GETNAMEINFO = 1
const HAVE_GETPAGESIZE = 1
const HAVE_GETPEERNAME = 1
const HAVE_GETPGID = 1
const HAVE_GETPGRP = 1
const HAVE_GETPID = 1
const HAVE_GETPPID = 1
const HAVE_GETPRIORITY = 1
const HAVE_GETPROTOBYNAME = 1
const HAVE_GETPWENT = 1
const HAVE_GETPWNAM_R = 1
const HAVE_GETPWUID = 1
const HAVE_GETPWUID_R = 1
const HAVE_GETRUSAGE = 1
const HAVE_GETSERVBYNAME = 1
const HAVE_GETSERVBYPORT = 1
const HAVE_GETSID = 1
const HAVE_GETSOCKNAME = 1
const HAVE_GETUID = 1
const HAVE_GETWD = 1
const HAVE_GRANTPT = 1
const HAVE_GRP_H = 1
const HAVE_HSTRERROR = 1
const HAVE_IF_NAMEINDEX = 1
const HAVE_INET_ATON = 1
const HAVE_INET_NTOA = 1
const HAVE_INET_PTON = 1
const HAVE_INITGROUPS = 1
const HAVE_INTTYPES_H = 1
const HAVE_KILL = 1
const HAVE_KILLPG = 1
const HAVE_KQUEUE = 1
const HAVE_LANGINFO_H = 1
const HAVE_LCHFLAGS = 1
const HAVE_LCHMOD = 1
const HAVE_LCHOWN = 1
const HAVE_LIBDL = 1
const HAVE_LIBSQLITE3 = 1
const HAVE_LINK = 1
const HAVE_LINKAT = 1
const HAVE_LISTEN = 1
const HAVE_LOCKF = 1
const HAVE_LOG1P = 1
const HAVE_LOG2 = 1
const HAVE_LOGIN_TTY = 1
const HAVE_LONG_DOUBLE = 1
const HAVE_LONG_LONG = 1
const HAVE_LSTAT = 1
const HAVE_LUTIMES = 1
const HAVE_MADVISE = 1
const HAVE_MAKEDEV = 1
const HAVE_MAXLOGNAME = 1
const HAVE_MBRTOWC = 1
const HAVE_MKDIRAT = 1
const HAVE_MKFIFO = 1
const HAVE_MKFIFOAT = 1
const HAVE_MKNOD = 1
const HAVE_MKNODAT = 1
const HAVE_MKTIME = 1
const HAVE_MMAP = 1
const HAVE_NANOSLEEP = 1
const HAVE_NCURSESW = 1
const HAVE_NCURSES_H = 1
const HAVE_NDBM_H = 1
const HAVE_NETDB_H = 1
const HAVE_NETINET_IN_H = 1
const HAVE_NET_ETHERNET_H = 1
const HAVE_NET_IF_H = 1
const HAVE_NICE = 1
const HAVE_OPENAT = 1
const HAVE_OPENDIR = 1
const HAVE_OPENPTY = 1
const HAVE_PANEL_H = 1
const HAVE_PATHCONF = 1
const HAVE_PAUSE = 1
const HAVE_PIPE = 1
const HAVE_POLL = 1
const HAVE_POLL_H = 1
const HAVE_POSIX_OPENPT = 1
const HAVE_POSIX_SPAWN = 1
const HAVE_POSIX_SPAWNP = 1
const HAVE_PREAD = 1
const HAVE_PREADV = 1
const HAVE_PROTOTYPES = 1
const HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP = 1
const HAVE_PTHREAD_GETNAME_NP = 1
const HAVE_PTHREAD_H = 1
const HAVE_PTHREAD_KILL = 1
const HAVE_PTHREAD_SETNAME_NP = 1
const HAVE_PTHREAD_SIGMASK = 1
const HAVE_PTSNAME = 1
const HAVE_PTSNAME_R = 1
const HAVE_PWRITE = 1
const HAVE_PWRITEV = 1
const HAVE_READLINK = 1
const HAVE_READLINKAT = 1
const HAVE_READV = 1
const HAVE_REALPATH = 1
const HAVE_RECVFROM = 1
const HAVE_RENAMEAT = 1
const HAVE_RL_COMPLETION_APPEND_CHARACTER = 1
const HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK = 1
const HAVE_RL_COMPLETION_MATCHES = 1
const HAVE_RL_PRE_INPUT_HOOK = 1
const HAVE_SCHED_GET_PRIORITY_MAX = 1
const HAVE_SCHED_H = 1
const HAVE_SEM_GETVALUE = 1
const HAVE_SEM_OPEN = 1
const HAVE_SEM_UNLINK = 1
const HAVE_SENDFILE = 1
const HAVE_SENDTO = 1
const HAVE_SETEGID = 1
const HAVE_SETEUID = 1
const HAVE_SETGID = 1
const HAVE_SETGROUPS = 1
const HAVE_SETHOSTNAME = 1
const HAVE_SETITIMER = 1
const HAVE_SETJMP_H = 1
const HAVE_SETLOCALE = 1
const HAVE_SETPGID = 1
const HAVE_SETPGRP = 1
const HAVE_SETPRIORITY = 1
const HAVE_SETREGID = 1
const HAVE_SETREUID = 1
const HAVE_SETSID = 1
const HAVE_SETSOCKOPT = 1
const HAVE_SETUID = 1
const HAVE_SETVBUF = 1
const HAVE_SHM_OPEN = 1
const HAVE_SHM_UNLINK = 1
const HAVE_SHUTDOWN = 1
const HAVE_SIGACTION = 1
const HAVE_SIGALTSTACK = 1
const HAVE_SIGFILLSET = 1
const HAVE_SIGINFO_T_SI_BAND = 1
const HAVE_SIGINTERRUPT = 1
const HAVE_SIGNAL_H = 1
const HAVE_SIGPENDING = 1
const HAVE_SIGRELSE = 1
const HAVE_SIGWAIT = 1
const HAVE_SNPRINTF = 1
const HAVE_SOCKADDR_SA_LEN = 1
const HAVE_SOCKADDR_STORAGE = 1
const HAVE_SOCKET = 1
const HAVE_SOCKETPAIR = 1
const HAVE_SOCKLEN_T = 1
const HAVE_SPAWN_H = 1
const HAVE_SSIZE_T = 1
const HAVE_STATVFS = 1
const HAVE_STAT_TV_NSEC2 = 1
const HAVE_STDINT_H = 1
const HAVE_STDIO_H = 1
const HAVE_STDLIB_H = 1
const HAVE_STD_ATOMIC = 1
const HAVE_STRFTIME = 1
const HAVE_STRINGS_H = 1
const HAVE_STRING_H = 1
const HAVE_STRLCPY = 1
const HAVE_STRSIGNAL = 1
const HAVE_STRUCT_PASSWD_PW_GECOS = 1
const HAVE_STRUCT_PASSWD_PW_PASSWD = 1
const HAVE_STRUCT_STAT_ST_BIRTHTIME = 1
const HAVE_STRUCT_STAT_ST_BLKSIZE = 1
const HAVE_STRUCT_STAT_ST_BLOCKS = 1
const HAVE_STRUCT_STAT_ST_FLAGS = 1
const HAVE_STRUCT_STAT_ST_GEN = 1
const HAVE_STRUCT_STAT_ST_RDEV = 1
const HAVE_STRUCT_TM_TM_ZONE = 1
const HAVE_SYMLINK = 1
const HAVE_SYMLINKAT = 1
const HAVE_SYNC = 1
const HAVE_SYSCONF = 1
const HAVE_SYSCTLBYNAME = 1
const HAVE_SYSEXITS_H = 1
const HAVE_SYSLOG_H = 1
const HAVE_SYSTEM = 1
const HAVE_SYS_EVENT_H = 1
const HAVE_SYS_FILE_H = 1
const HAVE_SYS_IOCTL_H = 1
const HAVE_SYS_KERN_CONTROL_H = 1
const HAVE_SYS_LOCK_H = 1
const HAVE_SYS_MMAN_H = 1
const HAVE_SYS_PARAM_H = 1
const HAVE_SYS_POLL_H = 1
const HAVE_SYS_RANDOM_H = 1
const HAVE_SYS_RESOURCE_H = 1
const HAVE_SYS_SELECT_H = 1
const HAVE_SYS_SOCKET_H = 1
const HAVE_SYS_STATVFS_H = 1
const HAVE_SYS_STAT_H = 1
const HAVE_SYS_SYSCALL_H = 1
const HAVE_SYS_SYSCTL_H = 1
const HAVE_SYS_SYS_DOMAIN_H = 1
const HAVE_SYS_TIMES_H = 1
const HAVE_SYS_TIME_H = 1
const HAVE_SYS_TYPES_H = 1
const HAVE_SYS_UIO_H = 1
const HAVE_SYS_UN_H = 1
const HAVE_SYS_UTSNAME_H = 1
const HAVE_SYS_WAIT_H = 1
const HAVE_SYS_XATTR_H = 1
const HAVE_TCGETPGRP = 1
const HAVE_TCSETPGRP = 1
const HAVE_TEMPNAM = 1
const HAVE_TERMIOS_H = 1
const HAVE_TERM_H = 1
const HAVE_TIMEGM = 1
const HAVE_TIMES = 1
const HAVE_TMPFILE = 1
const HAVE_TMPNAM = 1
const HAVE_TM_ZONE = 1
const HAVE_TRUNCATE = 1
const HAVE_TTYNAME_R = 1
const HAVE_UMASK = 1
const HAVE_UNAME = 1
const HAVE_UNISTD_H = 1
const HAVE_UNLINKAT = 1
const HAVE_UNLOCKPT = 1
const HAVE_UTIL_H = 1
const HAVE_UTIMENSAT = 1
const HAVE_UTIMES = 1
const HAVE_UTIME_H = 1
const HAVE_UTMP_H = 1
const HAVE_UT_NAMESIZE = 1
const HAVE_UUID_UUID_H = 1
const HAVE_VFORK = 1
const HAVE_WAIT = 1
const HAVE_WAIT3 = 1
const HAVE_WAIT4 = 1
const HAVE_WAITID = 1
const HAVE_WAITPID = 1
const HAVE_WCHAR_H = 1
const HAVE_WCSCOLL = 1
const HAVE_WCSFTIME = 1
const HAVE_WCSXFRM = 1
const HAVE_WMEMCMP = 1
const HAVE_WORKING_TZSET = 1
const HAVE_WRITEV = 1
const HAVE_ZLIB_COPY = 1
const HAVE___UINT128_T = 1
const InterpreterConfig_DEFAULT_GIL = 0
const InterpreterConfig_OWN_GIL = 2
const InterpreterConfig_SHARED_GIL = 1
const LE = 1
const LITTLE_ENDIAN = 1
const LLGoPackage = "link: $LLGO_LIB_PYTHON; $(pkg-config --libs python3-embed)"
const LT = 0
const Long_SHIFT = 30
const MAJOR_VERSION = 3
const MATH_E = 2.718281828459045
const MATH_PI = 3.141592653589793
const MAX_CO_EXTRA_USERS = 255
const METH_CLASS = 16
const METH_COEXIST = 64
const METH_FASTCALL = 128
const METH_KEYWORDS = 2
const METH_METHOD = 512
const METH_NOARGS = 4
const METH_O = 8
const METH_STACKLESS = 0
const METH_STATIC = 32
const METH_VARARGS = 1
const MICRO_VERSION = 8
const MINOR_VERSION = 14
const MONITORING_EVENT_BRANCH = 18
const MONITORING_EVENT_BRANCH_LEFT = 8
const MONITORING_EVENT_BRANCH_RIGHT = 9
const MONITORING_EVENT_CALL = 4
const MONITORING_EVENT_C_RAISE = 17
const MONITORING_EVENT_C_RETURN = 16
const MONITORING_EVENT_EXCEPTION_HANDLED = 12
const MONITORING_EVENT_INSTRUCTION = 6
const MONITORING_EVENT_JUMP = 7
const MONITORING_EVENT_LINE = 5
const MONITORING_EVENT_PY_RESUME = 1
const MONITORING_EVENT_PY_RETURN = 2
const MONITORING_EVENT_PY_START = 0
const MONITORING_EVENT_PY_THROW = 14
const MONITORING_EVENT_PY_UNWIND = 13
const MONITORING_EVENT_PY_YIELD = 3
const MONITORING_EVENT_RAISE = 11
const MONITORING_EVENT_RERAISE = 15
const MONITORING_EVENT_STOP_ITERATION = 10
const MVWDELCH_IS_EXPRESSION = 1
const ModCreate = 1
const ModExec = 2
const ModGil = 4
const ModMultipleInterpreters = 3
const MpAssSubscript = 3
const MpLength = 4
const MpSubscript = 5
const NE = 3
const NOWAIT_LOCK = 0
const NbAbsolute = 6
const NbAdd = 7
const NbAnd = 8
const NbBool = 9
const NbDivmod = 10
const NbFloat = 11
const NbFloorDivide = 12
const NbIndex = 13
const NbInplaceAdd = 14
const NbInplaceAnd = 15
const NbInplaceFloorDivide = 16
const NbInplaceLshift = 17
const NbInplaceMatrixMultiply = 76
const NbInplaceMultiply = 18
const NbInplaceOr = 19
const NbInplacePower = 20
const NbInplaceRemainder = 21
const NbInplaceRshift = 22
const NbInplaceSubtract = 23
const NbInplaceTrueDivide = 24
const NbInplaceXor = 25
const NbInt = 26
const NbInvert = 27
const NbLshift = 28
const NbMatrixMultiply = 75
const NbMultiply = 29
const NbNegative = 30
const NbOr = 31
const NbPositive = 32
const NbPower = 33
const NbRemainder = 34
const NbRshift = 35
const NbSubtract = 36
const NbTrueDivide = 37
const NbXor = 38
const PRINT_RAW = 1
const PTHREAD_SYSTEM_SCHED_SUPPORTED = 1
const PYLONG_BITS_IN_DIGIT = 30
const READONLY = 1
const RELATIVE_OFFSET = 8
const RELEASE_LEVEL = 15
const RELEASE_LEVEL_ALPHA = 10
const RELEASE_LEVEL_BETA = 11
const RELEASE_LEVEL_FINAL = 15
const RELEASE_LEVEL_GAMMA = 12
const RELEASE_SERIAL = 0
const REMOTE_DEBUG = 1
const RL_STARTUP_HOOK_TAKES_ARGS = 1
const SIZEOF_DOUBLE = 8
const SIZEOF_FLOAT = 4
const SIZEOF_FPOS_T = 8
const SIZEOF_INT = 4
const SIZEOF_LONG = 8
const SIZEOF_LONG_DOUBLE = 8
const SIZEOF_LONG_LONG = 8
const SIZEOF_OFF_T = 8
const SIZEOF_PID_T = 4
const SIZEOF_PTHREAD_KEY_T = 8
const SIZEOF_PTHREAD_T = 8
const SIZEOF_PY_HASH_T = 8
const SIZEOF_PY_UHASH_T = 8
const SIZEOF_SHORT = 2
const SIZEOF_SIZE_T = 8
const SIZEOF_TIME_T = 8
const SIZEOF_UINTPTR_T = 8
const SIZEOF_VOID_P = 8
const SIZEOF_WCHAR_T = 4
const SIZEOF__BOOL = 1
const SQLITE_ENABLE_LOAD_EXTENSION = 1
const SQLITE_HAVE_SERIALIZE = 1
const SSL_DEFAULT_CIPHERS = 1
const SSTATE_INTERNED_IMMORTAL = 2
const SSTATE_INTERNED_IMMORTAL_STATIC = 3
const SSTATE_INTERNED_MORTAL = 1
const SSTATE_NOT_INTERNED = 0
const STDC_HEADERS = 1
const STDIOTEXTMODE = "b"
const SUPPORT_TIER = 1
const SYS_SELECT_WITH_SYS_TIME = 1
const Set_MINSIZE = 8
const SingleInput = 256
const SqAssItem = 39
const SqConcat = 40
const SqContains = 41
const SqInplaceConcat = 42
const SqInplaceRepeat = 43
const SqItem = 44
const SqLength = 45
const SqRepeat = 46
const THREAD_STACK_SIZE = 16777216
const TPFLAGS_DEFAULT = 0
const TPFLAGS_HAVE_STACKLESS_EXTENSION = 0
const TPFLAGS_INLINE_VALUES = 4
const TPFLAGS_MANAGED_DICT = 16
const TPFLAGS_MANAGED_WEAKREF = 8
const TPFLAGS_MAPPING = 64
const TPFLAGS_PREHEADER = 24
const TPFLAGS_SEQUENCE = 32
const T_BOOL = 14
const T_BYTE = 8
const T_CHAR = 7
const T_DOUBLE = 4
const T_FLOAT = 3
const T_INT = 1
const T_LONG = 2
const T_LONGLONG = 17
const T_OBJECT_EX = 16
const T_PYSSIZET = 19
const T_SHORT = 0
const T_STRING = 5
const T_STRING_INPLACE = 13
const T_UBYTE = 9
const T_UINT = 11
const T_ULONG = 12
const T_ULONGLONG = 18
const T_USHORT = 10
const TpAlloc = 47
const TpBase = 48
const TpBases = 49
const TpCall = 50
const TpClear = 51
const TpDealloc = 52
const TpDel = 53
const TpDescrGet = 54
const TpDescrSet = 55
const TpDoc = 56
const TpFinalize = 80
const TpFree = 74
const TpGetattr = 57
const TpGetattro = 58
const TpGetset = 73
const TpHash = 59
const TpInit = 60
const TpIsGc = 61
const TpIter = 62
const TpIternext = 63
const TpMembers = 72
const TpMethods = 64
const TpNew = 65
const TpRepr = 66
const TpRichcompare = 67
const TpSetattr = 68
const TpSetattro = 69
const TpStr = 70
const TpToken = 83
const TpTraverse = 71
const TpVectorcall = 82
const Trace_CALL = 0
const Trace_C_CALL = 4
const Trace_C_EXCEPTION = 5
const Trace_C_RETURN = 6
const Trace_EXCEPTION = 1
const Trace_LINE = 2
const Trace_OPCODE = 7
const Trace_RETURN = 3
const UNICODE_SIZE = 4
const Unstable_EXECUTABLE_KINDS = 5
const Unstable_EXECUTABLE_KIND_BUILTIN_FUNCTION = 3
const Unstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR = 4
const Unstable_EXECUTABLE_KIND_PY_FUNCTION = 1
const Unstable_EXECUTABLE_KIND_SKIP = 0
const VERSION = "3.14.8"
const WAIT_LOCK = 1
const WINDOW_HAS_FLAGS = 1
const WITH_DECIMAL_CONTEXTVAR = 1
const WITH_DOC_STRINGS = 1
const WITH_DTRACE = 1
const WITH_DYLD = 1
const WITH_EDITLINE = 1
const WITH_MIMALLOC = 1
const WITH_NEXT_FRAMEWORK = 1
const WITH_PYMALLOC = 1
const WrapperFlag_KEYWORDS = 1
const XGoPackage = true
const X_ALL_SOURCE = 1
const X_ATTR_CACHE_UNUSED = 30000
const X_DARWIN_C_SOURCE = 1
const X_DATA_STACK_CHUNK_SIZE = 16384
const X_FFI_SUPPORT_C_COMPLEX = 1
const X_FILE_OFFSET_BITS = 64
const X_GNU_SOURCE = 1
const X_HASH_BITS = 61
const X_HASH_INF = 314159
const X_HPUX_ALT_XOPEN_SOCKET_API = 1
const X_IMMORTAL_FLAGS = 1
const X_InterpreterConfig_LEGACY_CHECK_MULTI_INTERP_EXTENSIONS = 0
const X_LARGEFILE_SOURCE = 1
const X_LOCKED = 1
const X_Long_DECIMAL_SHIFT = 9
const X_Long_NON_SIZE_BITS = 3
const X_Long_SIGN_MASK = 3
const X_MANAGED_BUFFER_FREE_FORMAT = 2
const X_MANAGED_BUFFER_RELEASED = 1
const X_MAX_SCRIPT_PATH_SIZE = 512
const X_MEMORYVIEW_C = 2
const X_MEMORYVIEW_FORTRAN = 4
const X_MEMORYVIEW_PIL = 16
const X_MEMORYVIEW_RELEASED = 1
const X_MEMORYVIEW_RESTRICTED = 32
const X_MEMORYVIEW_SCALAR = 8
const X_NETBSD_SOURCE = 1
const X_OPENBSD_SOURCE = 1
const X_PARSE_INTPTR = "l"
const X_PARSE_PID = "i"
const X_PARSE_UINTPTR = "k"
const X_POSIX_PTHREAD_SEMANTICS = 1
const X_PYTHONFRAMEWORK = "Python"
const X_PYTHREAD_NAME_MAXLEN = 63
const X_REENTRANT = 1
const X_STACK_GROWS_DOWN = 1
const X_STATICALLY_ALLOCATED_FLAG = 4
const X_TANDEM_SOURCE = 1
const X_TPFLAGS_STATIC_BUILTIN = 2
const X_T_NONE = 20
const X_T_OBJECT = 6
const X_UNLOCKED = 0
const X_USE_GCC_BUILTIN_ATOMICS = 1
const X_WRITE_RESTRICTED = 4
const X__BSD_VISIBLE = 1
const X__EXTENSIONS__ = 1
const X__STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
const X__STDC_WANT_IEC_60559_BFP_EXT__ = 1
const X__STDC_WANT_IEC_60559_DFP_EXT__ = 1
const X__STDC_WANT_IEC_60559_EXT__ = 1
const X__STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
const X__STDC_WANT_IEC_60559_TYPES_EXT__ = 1
const X__STDC_WANT_LIB_EXT2__ = 1
const X__STDC_WANT_MATH_SPEC_FUNCS__ = 1
const X_modLAST_SLOT = 4
Variables ¶
var BytesWarningFlag c.Int
var DebugFlag c.Int
var DontWriteBytecodeFlag c.Int
var FileSystemDefaultEncodeErrors *c.Char
var FileSystemDefaultEncoding *c.Char
The default encoding used by the platform file system APIs If non-NULL, this is different than the default encoding for strings
var FrozenFlag c.Int
var HasFileSystemDefaultEncoding c.Int
var HashRandomizationFlag c.Int
var Hexdigits *c.Char
var IgnoreEnvironmentFlag c.Int
var InspectFlag c.Int
var InteractiveFlag c.Int
var IsolatedFlag c.Int
var NoSiteFlag c.Int
var NoUserSiteDirectory c.Int
var OS_InputHook func() c.Int
Stuff with no proper home (yet)
var OS_ReadlineFunctionPointer func(_llcppg_param1 *c.FILE, _llcppg_param2 *c.FILE, _llcppg_param3 *c.Char) *c.Char
var OptimizeFlag c.Int
var QuietFlag c.Int
var StructSequenceUnnamedField *c.Char
var TIMEOUT_MAX c.LongLong
PY_TIMEOUT_MAX is the highest usable value (in microseconds) of PY_TIMEOUT_T type, and depends on the system threading API.
NOTE: this isn't the same value as `_thread.TIMEOUT_MAX`. The _thread module exposes a higher-level API, with timeouts expressed in seconds and floating-point numbers allowed.
var UTF8Mode c.Int
var UnbufferedStdioFlag c.Int
var VerboseFlag c.Int
var Version c.Ulong
var X_ByteArrayEmptyString *c.Char
var X_asciiWhitespace *uint8
Helper array used by Py_UNICODE_ISSPACE().
var X_ctypeTable [256]c.Uint
var X_ctypeTolower [256]uint8
var X_ctypeToupper [256]uint8
Functions ¶
func AIterCheck ¶ added in v0.2.1
Returns non-zero if the object 'obj' provides AsyncIterator protocols, and 0 otherwise.
This function always succeeds.
func AddPendingCall ¶ added in v0.2.0
func ArgParseTuple ¶ added in v0.2.1
func ArgParseTupleAndKeywords ¶ added in v0.2.1
func ArgUnpackTuple ¶ added in v0.2.1
func ArgVaParse ¶ added in v0.2.1
func ArgVaParseTupleAndKeywords ¶ added in v0.2.1
func ArgValidateKeywordArguments ¶ added in v0.2.1
func AtExit ¶ added in v0.2.0
Py_PyAtExit is for the atexit module, Py_AtExit is for low-level exit functions.
func BufferFillContiguousStrides ¶ added in v0.2.0
func BufferFillContiguousStrides(ndims c.Int, shape *SsizeT, strides *SsizeT, itemsize c.Int, fort c.Char)
Fill the strides array with byte-strides of a contiguous (Fortran-style if fort is 'F' or C-style otherwise) array of the given shape with the given number of bytes per element.
func BufferFromContiguous ¶ added in v0.2.3
func BufferToContiguous ¶ added in v0.2.0
Implementation in memoryobject.c
func BytesConcat ¶ added in v0.2.0
func BytesConcatAndDel ¶ added in v0.2.0
func CallableCheck ¶ added in v0.2.3
func CapsuleGetContext ¶ added in v0.2.3
func CapsuleGetName ¶ added in v0.2.3
func CapsuleGetPointer ¶ added in v0.2.3
func CapsuleImport ¶ added in v0.2.0
func CapsuleSetContext ¶ added in v0.2.3
func CapsuleSetDestructor ¶ added in v0.2.3
func CapsuleSetDestructor(capsule *Object, destructor CapsuleDestructor) c.Int
func CapsuleSetPointer ¶ added in v0.2.3
func CodeAddWatcher ¶ added in v0.2.0
func CodeAddWatcher(callback CodeWatchCallback) c.Int
Register a per-interpreter callback that will be invoked for code object lifecycle events.
Returns a handle that may be passed to PyCode_ClearWatcher on success, or -1 and sets an error if no more handles are available.
func CodeClearWatcher ¶ added in v0.2.0
Clear the watcher associated with the watcher_id handle.
Returns 0 on success or -1 if no watcher exists for the provided id.
func CodecKnownEncoding ¶ added in v0.2.0
Codec registry encoding check API.
Returns 1/0 depending on whether there is a registered codec for the given encoding.
func CodecRegister ¶ added in v0.2.3
Register a new codec search function.
As side effect, this tries to load the encodings package, if not yet done, to make sure that it is always first in the list of search functions.
The search_function's refcount is incremented by this function.
func CodecRegisterError ¶ added in v0.2.0
Register the error handling callback function error under the given name. This function will be called by the codec when it encounters unencodable characters/undecodable bytes and doesn't know the callback name, when name is specified as the error parameter in the call to the encode/decode function. Return 0 on success, -1 on error
func CodecUnregister ¶ added in v0.2.3
Unregister a codec search function and clear the registry's cache. If the search function is not registered, do nothing. Return 0 on success. Raise an exception and return -1 on error.
func CompileOpcodeStackEffect ¶ added in v0.2.0
func CompileOpcodeStackEffectWithJump ¶ added in v0.2.0
func ContextAddWatcher ¶ added in v0.2.0
func ContextAddWatcher(callback ContextWatchCallback) c.Int
Register a per-interpreter callback that will be invoked for context object enter/exit events.
Returns a handle that may be passed to PyContext_ClearWatcher on success, or -1 and sets and error if no more handles are available.
func ContextClearWatcher ¶ added in v0.2.0
Clear the watcher associated with the watcher_id handle.
Returns 0 on success or -1 if no watcher exists for the provided id.
func DictAddWatcher ¶ added in v0.2.0
func DictAddWatcher(callback DictWatchCallback) c.Int
Register/unregister a dict-watcher callback
func DictWatch ¶ added in v0.2.0
Mark given dictionary as "watched" (callback will be called if it is modified)
func EndInterpreter ¶ added in v0.2.0
func EndInterpreter(_llcppg_param1 *ThreadState)
func ErrBadInternalCall ¶ added in v0.2.0
func ErrBadInternalCall()
Export the old function so that the existing API remains available:
func ErrDisplay ¶ added in v0.2.1
func ErrDisplayException ¶ added in v0.2.1
func ErrDisplayException(_llcppg_param1 *Object)
func ErrExceptionMatches ¶ added in v0.2.1
func ErrFormatUnraisable ¶ added in v0.2.0
func ErrGetExcInfo ¶ added in v0.2.0
func ErrGivenExceptionMatches ¶ added in v0.2.1
Error testing and normalization
func ErrNormalizeException ¶ added in v0.2.0
func ErrPrintEx ¶ added in v0.2.0
func ErrRangedSyntaxLocationObject ¶ added in v0.2.1
func ErrResourceWarning ¶ added in v0.2.1
func ErrResourceWarning(source *Object, stack_level SsizeT, format *c.Char, __llgo_va_list ...any) c.Int
Emit a ResourceWarning warning
func ErrRestore ¶ added in v0.2.1
func ErrSetExcInfo ¶ added in v0.2.1
func ErrSetHandledException ¶ added in v0.2.1
func ErrSetHandledException(_llcppg_param1 *Object)
func ErrSetInterrupt ¶ added in v0.2.0
func ErrSetInterrupt()
func ErrSetNone ¶ added in v0.2.1
func ErrSetNone(_llcppg_param1 *Object)
func ErrSetObject ¶ added in v0.2.1
func ErrSetRaisedException ¶ added in v0.2.1
func ErrSetRaisedException(_llcppg_param1 *Object)
func ErrSetString ¶ added in v0.2.1
func ErrSyntaxLocation ¶ added in v0.2.0
Support for adding program text to SyntaxErrors
func ErrSyntaxLocationEx ¶ added in v0.2.0
func ErrSyntaxLocationObject ¶ added in v0.2.1
Support for adding program text to SyntaxErrors
func ErrWarnExplicit ¶ added in v0.2.1
func ErrWarnExplicitFormat ¶ added in v0.2.1
func ErrWarnExplicitObject ¶ added in v0.2.1
func ErrWarnFormat ¶ added in v0.2.1
func ErrWriteUnraisable ¶ added in v0.2.1
func ErrWriteUnraisable(_llcppg_param1 *Object)
func EvalAcquireThread ¶ added in v0.2.1
func EvalAcquireThread(tstate *ThreadState)
func EvalGetFuncDesc ¶ added in v0.2.1
func EvalGetFuncName ¶ added in v0.2.1
func EvalInitThreads ¶ added in v0.2.0
func EvalInitThreads()
func EvalMergeCompilerFlags ¶ added in v0.2.1
func EvalMergeCompilerFlags(cf *CompilerFlags) c.Int
Look at the current frame's (if any) code's co_flags, and turn on the corresponding compiler flags in cf->cf_flags. Return 1 if any flag was set, else return 0.
func EvalReleaseThread ¶ added in v0.2.1
func EvalReleaseThread(tstate *ThreadState)
func EvalRestoreThread ¶ added in v0.2.1
func EvalRestoreThread(_llcppg_param1 *ThreadState)
func EvalSetProfile ¶ added in v0.2.0
func EvalSetProfileAllThreads ¶ added in v0.2.0
func EvalSetTrace ¶ added in v0.2.0
func EvalSetTraceAllThreads ¶ added in v0.2.0
func ExceptionClassName ¶ added in v0.2.3
func ExceptionSetArgs ¶ added in v0.2.3
func ExceptionSetCause ¶ added in v0.2.3
func ExceptionSetContext ¶ added in v0.2.3
func ExceptionSetTraceback ¶ added in v0.2.3
Traceback manipulation (PEP 3134)
func ExitStatusException ¶ added in v0.2.0
func ExitStatusException(err Status)
func FatalError ¶ added in v0.2.0
Defined in Python/pylifecycle.c
The Py_FatalError() function is replaced with a macro which logs automatically the name of the current function, unless the Py_LIMITED_API macro is defined.
func FdIsInteractive ¶ added in v0.2.0
func FileSetOpenCodeHook ¶ added in v0.2.0
func FileSetOpenCodeHook(hook OpenCodeHookFunction, userData unsafe.Pointer) c.Int
func FileWriteObject ¶ added in v0.2.3
func FileWriteString ¶ added in v0.2.0
func FinalizeEx ¶ added in v0.2.0
func FloatGetMax ¶ added in v0.2.0
func FloatGetMin ¶ added in v0.2.0
func FrozenMain ¶ added in v0.2.0
Py_FrozenMain is kept out of the Limited API until documented and present in all builds of Python
func FunctionAddWatcher ¶ added in v0.2.0
func FunctionAddWatcher(callback FunctionWatchCallback) c.Int
Register a per-interpreter callback that will be invoked for function lifecycle events.
Returns a handle that may be passed to PyFunction_ClearWatcher on success, or -1 and sets an error if no more handles are available.
func FunctionClearWatcher ¶ added in v0.2.0
Clear the watcher associated with the watcher_id handle.
Returns 0 on success or -1 if no watcher exists for the supplied id.
func GC_Disable ¶ added in v0.2.0
func GC_IsEnabled ¶ added in v0.2.0
func GETENV ¶ added in v0.2.0
this is a wrapper around getenv() that pays attention to Py_IgnoreEnvironmentFlag. It should be used for getting variables like PYTHONPATH and PYTHONHOME from the environment
func GILStateCheck ¶ added in v0.2.0
Helper/diagnostic function - return 1 if the current thread currently holds the GIL, 0 otherwise.
The function returns 1 if _PyGILState_check_enabled is non-zero.
func GILStateRelease ¶ added in v0.2.3
func GILStateRelease(_llcppg_param1 GILState_STATE)
Release any resources previously acquired. After this call, Python's state will be the same as it was prior to the corresponding PyGILState_Ensure() call (but generally this state will be unknown to the caller, hence the use of the GILState API.)
Every call to PyGILState_Ensure must be matched by a call to PyGILState_Release on the same thread.
func GetArgcArgv ¶ added in v0.2.0
Get the original command line arguments, before Python modified them.
See also PyConfig.orig_argv.
func GetBuildInfo ¶ added in v0.2.0
func GetCompiler ¶ added in v0.2.0
func GetCopyright ¶ added in v0.2.0
func GetExecPrefix ¶ added in v0.2.0
func GetPlatform ¶ added in v0.2.0
func GetProgramFullPath ¶ added in v0.2.0
func GetProgramName ¶ added in v0.2.0
func GetPythonHome ¶ added in v0.2.0
func GetRecursionLimit ¶ added in v0.2.0
func ImportAppendInittab ¶ added in v0.2.0
func ImportGetMagicNumber ¶ added in v0.2.0
func ImportGetMagicTag ¶ added in v0.2.0
func IncRef ¶ added in v0.2.0
func IncRef(_llcppg_param1 *Object)
These are provided as conveniences to Python runtime embedders, so that they can have object code that is not dependent on Python compilation flags.
func IndexCheck ¶ added in v0.2.3
Returns 1 if obj is an index integer (has the nb_index slot of the tp_as_number structure filled in), and 0 otherwise.
func InitConfigFreeStrList ¶ added in v0.2.0
func InitializeEx ¶ added in v0.2.0
func InitializeFromInitConfig ¶ added in v0.2.0
func InitializeFromInitConfig(config *InitConfig) c.Int
func IsFalse ¶ added in v0.2.0
Test if an object is the False singleton, the same as "x is False" in Python.
func IsFinalizing ¶ added in v0.2.0
func IsInitialized ¶ added in v0.2.0
func IsNone ¶ added in v0.2.0
Test if an object is the None singleton, the same as "x is None" in Python.
func IsTrue ¶ added in v0.2.0
Test if an object is the True singleton, the same as "x is True" in Python.
func IterCheck ¶ added in v0.2.3
Returns non-zero if the object 'obj' provides iterator protocols, and 0 otherwise.
This function always succeeds.
func IterNextItem ¶ added in v0.2.3
Return 1 and set 'item' to the next item of 'iter' on success. Return 0 and set 'item' to NULL when there are no remaining values. Return -1, set 'item' to NULL and set an exception on error.
func LeaveRecursiveCall ¶ added in v0.2.0
func LeaveRecursiveCall()
func MakePendingCalls ¶ added in v0.2.0
func MappingCheck ¶ added in v0.2.3
Return 1 if the object provides mapping protocol, and 0 otherwise.
This function always succeeds.
func MappingGetOptionalItem ¶ added in v0.2.3
func MappingGetOptionalItemString ¶ added in v0.2.3
func MappingHasKey ¶ added in v0.2.3
Return 1 if the mapping object has the key 'key', and 0 otherwise.
This is equivalent to the Python expression: key in o.
This function always succeeds.
func MappingHasKeyString ¶ added in v0.2.3
On success, return 1 if the mapping object 'o' has the key 'key', and 0 otherwise.
This is equivalent to the Python expression: key in o.
This function always succeeds.
func MappingHasKeyStringWithError ¶ added in v0.2.3
Return 1 if the mapping object has the key 'key', and 0 otherwise. This is equivalent to the Python expression: key in o. On failure, return -1.
func MappingHasKeyWithError ¶ added in v0.2.3
Return 1 if the mapping object has the key 'key', and 0 otherwise. This is equivalent to the Python expression: key in o. On failure, return -1.
func MappingSetItemString ¶ added in v0.2.3
Map the string 'key' to the value 'v' in the mapping 'o'. Returns -1 on failure.
This is the equivalent of the Python statement: o[key]=v.
func MemGetAllocator ¶ added in v0.2.3
func MemGetAllocator(domain MemAllocatorDomain, allocator *MemAllocatorEx)
Get the memory block allocator of the specified domain.
func MemMalloc ¶ added in v0.2.0
Functions
Functions supplying platform-independent semantics for malloc/realloc/ free. These functions make sure that allocating 0 bytes returns a distinct non-NULL pointer (whenever possible -- if we're flat out of memory, NULL may be returned), even if the platform malloc and realloc don't. Returned pointers must be checked for NULL explicitly. No action is performed on failure (no exception is set, no warning is printed, etc).
func MemRawFree ¶ added in v0.2.0
func MemRawMalloc ¶ added in v0.2.0
Memory allocator which doesn't require the GIL to be held. Usually, it's just a thin wrapper to functions of the standard C library: malloc(), calloc(), realloc() and free(). The difference is that tracemalloc can track these memory allocations.
func MemRawRealloc ¶ added in v0.2.0
func MemRealloc ¶ added in v0.2.0
func MemSetAllocator ¶ added in v0.2.3
func MemSetAllocator(domain MemAllocatorDomain, allocator *MemAllocatorEx)
Set the memory block allocator of the specified domain.
The new allocator must return a distinct non-NULL pointer when requesting zero bytes.
For the PYMEM_DOMAIN_RAW domain, the allocator must be thread-safe: the GIL is not held when the allocator is called.
If the new allocator is not a hook (don't call the previous allocator), the PyMem_SetupDebugHooks() function must be called to reinstall the debug hooks on top on the new allocator.
func MemSetupDebugHooks ¶ added in v0.2.0
func MemSetupDebugHooks()
Setup hooks to detect bugs in the following Python memory allocator functions:
- PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree() - PyMem_Malloc(), PyMem_Realloc(), PyMem_Free() - PyObject_Malloc(), PyObject_Realloc() and PyObject_Free()
Newly allocated memory is filled with the byte 0xCB, freed memory is filled with the byte 0xDB. Additional checks:
- detect API violations, ex: PyObject_Free() called on a buffer allocated by PyMem_Malloc() - detect write before the start of the buffer (buffer underflow) - detect write after the end of the buffer (buffer overflow)
The function does nothing if Python is not compiled is debug mode.
func MemberSetOne ¶ added in v0.2.0
func ModuleAdd ¶ added in v0.2.3
Similar to PyModule_AddObjectRef() but steal a reference to 'value'.
func ModuleAddFunctions ¶ added in v0.2.3
func ModuleAddIntConstant ¶ added in v0.2.3
func ModuleAddObject ¶ added in v0.2.3
Similar to PyModule_AddObjectRef() and PyModule_Add() but steal a reference to 'value' on success and only on success. Errorprone. Should not be used in new code.
func ModuleAddObjectRef ¶ added in v0.2.3
Add an attribute with name 'name' and value 'obj' to the module 'mod. On success, return 0. On error, raise an exception and return -1.
func ModuleAddStringConstant ¶ added in v0.2.3
func ModuleAddType ¶ added in v0.2.3
func ModuleAddType(module *Object, type_ *TypeObject) c.Int
New in 3.9
func ModuleGetFilename ¶ added in v0.2.3
func ModuleGetName ¶ added in v0.2.3
func ModuleGetState ¶ added in v0.2.3
func ModuleSetDocString ¶ added in v0.2.3
New in 3.5
func MonitoringEnterScope ¶ added in v0.2.3
func MonitoringExitScope ¶ added in v0.2.0
func NumberCheck ¶ added in v0.2.3
Returns 1 if the object 'o' provides numeric protocols, and 0 otherwise.
This function always succeeds.
func OSDoubleToString ¶ added in v0.2.0
func OSDoubleToString(val c.Double, format_code c.Char, precision c.Int, flags c.Int, type_ *c.Int) *c.Char
The caller is responsible for calling PyMem_Free to free the buffer that's is returned.
func OSMystricmp ¶ added in v0.2.0
func OSMystrnicmp ¶ added in v0.2.0
func OSSnprintf ¶ added in v0.2.0
func OSStringToDouble ¶ added in v0.2.0
func OSStrtoul ¶ added in v0.2.0
These aren't really part of the int object, but they're handy. The functions are in Python/mystrtoul.c.
func OSVsnprintf ¶ added in v0.2.0
func OS_AfterFork ¶ added in v0.2.0
func OS_AfterFork()
Deprecated, please use PyOS_AfterFork_Child() instead
func OS_AfterFork_Child ¶ added in v0.2.0
func OS_AfterFork_Child()
func OS_AfterFork_Parent ¶ added in v0.2.0
func OS_AfterFork_Parent()
func OS_BeforeFork ¶ added in v0.2.0
func OS_BeforeFork()
func OS_InterruptOccurred ¶ added in v0.2.0
func OS_Readline ¶ added in v0.2.0
Stuff with no proper home (yet)
func ObjectFree ¶ added in v0.2.0
func ObjectGetArenaAllocator ¶ added in v0.3.0
func ObjectGetArenaAllocator(allocator *ObjectArenaAllocator)
Get the arena allocator.
func ObjectMalloc ¶ added in v0.2.0
Functions to call the same malloc/realloc/free as used by Python's object allocator. If WITH_PYMALLOC is enabled, these may differ from the platform malloc/realloc/free. The Python object allocator is designed for fast, cache-conscious allocation of many "small" objects, and with low hidden memory overhead.
PyObject_Malloc(0) returns a unique non-NULL pointer if possible.
PyObject_Realloc(NULL, n) acts like PyObject_Malloc(n). PyObject_Realloc(p != NULL, 0) does not return NULL, or free the memory at p.
Returned pointers must be checked for NULL explicitly; no action is performed on failure other than to return NULL (no warning it printed, no exception is set, etc).
For allocating objects, use PyObject_{New, NewVar} instead whenever possible. The PyObject_{Malloc, Realloc, Free} family is exposed so that you can exploit Python's small-block allocator for non-object uses. If you must use these routines to allocate object memory, make sure the object gets initialized via PyObject_{Init, InitVar} after obtaining the raw memory.
func ObjectRealloc ¶ added in v0.2.0
func ObjectSetArenaAllocator ¶ added in v0.3.0
func ObjectSetArenaAllocator(allocator *ObjectArenaAllocator)
Set the arena allocator.
func Object_GC_Del ¶ added in v0.2.0
func Object_GC_Track ¶ added in v0.2.0
Tell the GC to track this object.
See also private _PyObject_GC_TRACK() macro.
func Object_GC_UnTrack ¶ added in v0.2.0
Tell the GC to stop tracking this object.
See also private _PyObject_GC_UNTRACK() macro.
func PACK_FULL_VERSION ¶ added in v0.2.0
Version helpers. These are primarily macros, but have exported equivalents.
func PickleBufferRelease ¶ added in v0.2.3
Release the PickleBuffer. Returns 0 on success, -1 on error.
func RefTracerSetTracer ¶ added in v0.2.0
func RunAnyFileEx ¶ added in v0.2.0
func RunAnyFileExFlags ¶ added in v0.2.0
func RunAnyFileFlags ¶ added in v0.2.0
func RunInteractiveLoopFlags ¶ added in v0.2.0
func RunInteractiveOneFlags ¶ added in v0.2.0
func RunInteractiveOneObject ¶ added in v0.2.0
func RunSimpleFileExFlags ¶ added in v0.2.0
func RunSimpleStringFlags ¶ added in v0.2.0
func RunSimpleStringFlags(_llcppg_param1 *c.Char, _llcppg_param2 *CompilerFlags) c.Int
func SequenceCheck ¶ added in v0.2.3
Return 1 if the object provides sequence protocol, and zero otherwise.
This function always succeeds.
func SequenceContains ¶ added in v0.2.3
Return 1 if 'ob' is in the sequence 'seq'; 0 if 'ob' is not in the sequence 'seq'; -1 on error.
Use __contains__ if possible, else _PySequence_IterSearch().
func SequenceDelItem ¶ added in v0.2.3
Delete the 'i'-th element of the sequence 'v'. Returns -1 on failure.
This is the equivalent of the Python statement: del o[i].
func SequenceDelSlice ¶ added in v0.2.3
Delete the slice in sequence object 'o' from 'i1' to 'i2'. Returns -1 on failure.
This is the equivalent of the Python statement: del o[i1:i2].
func SequenceIn ¶ added in v0.2.3
Determine if the sequence 'o' contains 'value'. If an item in 'o' is equal to 'value', return 1, otherwise return 0. On error, return -1.
This is equivalent to the Python expression: value in o.
func SequenceSetItem ¶ added in v0.2.3
Assign object 'v' to the ith element of the sequence 'o'. Raise an exception and return -1 on failure; return 0 on success.
This is the equivalent of the Python statement o[i] = v.
func SequenceSetSlice ¶ added in v0.2.3
Assign the sequence object 'v' to the slice in sequence object 'o', from 'i1' to 'i2'. Returns -1 on failure.
This is the equivalent of the Python statement: o[i1:i2] = v.
func SetPythonHome ¶ added in v0.2.0
func SetRecursionLimit ¶ added in v0.2.0
Protection against deeply nested recursive calls
In Python 3.0, this protection has two levels: normal anti-recursion protection is triggered when the recursion level exceeds the current recursion limit. It raises a RecursionError, and sets the "overflowed" flag in the thread state structure. This flag temporarily *disables* the normal protection; this allows cleanup code to potentially outgrow the recursion limit while processing the RecursionError. "last chance" anti-recursion protection is triggered when the recursion level exceeds "current recursion limit + 50". By construction, this protection can only be triggered when the "overflowed" flag is set. It means the cleanup code has itself gone into an infinite loop, or the RecursionError has been mistakenly ignored. When this protection is triggered, the interpreter aborts with a Fatal Error.
In addition, the "overflowed" flag is automatically reset when the recursion level drops below "current recursion limit - 50". This heuristic is meant to ensure that the normal anti-recursion protection doesn't get disabled too long.
Please note: this scheme has its own limitations. See: http://mail.python.org/pipermail/python-dev/2008-August/082106.html for some observations.
func StateAddModule ¶ added in v0.2.3
New in 3.3
func StateRemoveModule ¶ added in v0.2.3
func SysAddAuditHook ¶ added in v0.2.0
func SysAddAuditHook(_llcppg_param1 AuditHookFunction, _llcppg_param2 unsafe.Pointer) c.Int
func SysFormatStderr ¶ added in v0.2.0
func SysFormatStdout ¶ added in v0.2.0
func SysResetWarnOptions ¶ added in v0.2.0
func SysResetWarnOptions()
func SysSetArgvEx ¶ added in v0.2.0
func SysSetObject ¶ added in v0.2.0
func SysWriteStderr ¶ added in v0.2.0
func SysWriteStdout ¶ added in v0.2.0
func ThreadAcquireLock ¶ added in v0.2.3
func ThreadAcquireLock(_llcppg_param1 ThreadTypeLock, _llcppg_param2 c.Int) c.Int
func ThreadCreateKey ¶ added in v0.2.0
Thread Local Storage (TLS) API TLS API is DEPRECATED. Use Thread Specific Storage (TSS) API.
The existing TLS API has used int to represent TLS keys across all platforms, but it is not POSIX-compliant. Therefore, the new TSS API uses opaque data type to represent TSS keys to be compatible (see PEP 539).
func ThreadDeleteKey ¶ added in v0.2.0
func ThreadDeleteKeyValue ¶ added in v0.2.0
func ThreadExitThread ¶ added in v0.2.0
func ThreadExitThread()
Terminates the current thread. Considered unsafe.
WARNING: This function is only safe to call if all functions in the full call stack are written to safely allow it. Additionally, the behavior is platform-dependent. This function should be avoided, and is no longer called by Python itself. It is retained only for compatibility with existing C extension code.
With pthreads, calls `pthread_exit` causes some libcs (glibc?) to attempt to unwind the stack and call C++ destructors; if a `noexcept` function is reached, they may terminate the process. Others (macOS) do unwinding.
On Windows, calls `_endthreadex` which kills the thread without calling C++ destructors.
In either case there is a risk of invalid references remaining to data on the thread stack.
func ThreadFreeLock ¶ added in v0.2.3
func ThreadFreeLock(_llcppg_param1 ThreadTypeLock)
func ThreadGetStacksize ¶ added in v0.2.0
func ThreadGetThreadIdent ¶ added in v0.2.0
func ThreadGetThreadNativeId ¶ added in v0.2.0
func ThreadInitThread ¶ added in v0.2.0
func ThreadInitThread()
func ThreadReleaseLock ¶ added in v0.2.3
func ThreadReleaseLock(_llcppg_param1 ThreadTypeLock)
func ThreadSetKeyValue ¶ added in v0.2.0
func ThreadStartNewThread ¶ added in v0.2.0
func ThreadStateDeleteCurrent ¶ added in v0.2.0
func ThreadStateDeleteCurrent()
func ThreadStateSetAsyncExc ¶ added in v0.2.0
func TimeAsSecondsDouble ¶ added in v0.2.0
func TimeMonotonic ¶ added in v0.2.0
func TimeMonotonicRaw ¶ added in v0.2.0
func TimePerfCounter ¶ added in v0.2.0
func TimePerfCounterRaw ¶ added in v0.2.0
func TimeTimeRaw ¶ added in v0.2.0
func TraceBackHere ¶ added in v0.2.3
func TraceBackHere(_llcppg_param1 *FrameObject) c.Int
Traceback interface
func TraceBackPrint ¶ added in v0.2.3
func TraceMallocTrack ¶ added in v0.2.0
Track an allocated memory block in the tracemalloc module. Return 0 on success, return -1 on error (failed to allocate memory to store the trace).
Return -2 if tracemalloc is disabled.
If memory block is already tracked, update the existing trace.
func TraceMallocUntrack ¶ added in v0.2.0
Untrack an allocated memory block in the tracemalloc module. Do nothing if the block was not tracked.
Return -2 if tracemalloc is disabled, otherwise return 0.
func TypeAddWatcher ¶ added in v0.2.0
func TypeAddWatcher(callback TypeWatchCallback) c.Int
func TypeClearCache ¶ added in v0.2.0
func UnicodeAppend ¶ added in v0.2.0
Concat two strings and put the result in *pleft (sets *pleft to NULL on error)
func UnicodeAppendAndDel ¶ added in v0.2.0
Concat two strings, put the result in *pleft and drop the right object (sets *pleft to NULL on error)
func UnicodeDecodeErrorGetEnd ¶ added in v0.2.3
func UnicodeDecodeErrorGetStart ¶ added in v0.2.3
func UnicodeDecodeErrorSetEnd ¶ added in v0.2.3
func UnicodeDecodeErrorSetReason ¶ added in v0.2.3
func UnicodeDecodeErrorSetStart ¶ added in v0.2.3
func UnicodeEncodeErrorGetEnd ¶ added in v0.2.3
get the value of the end attribute (the int *may not be NULL) return 0 on success, -1 on failure
func UnicodeEncodeErrorGetStart ¶ added in v0.2.3
get the value of the start attribute (the int * may not be NULL) return 0 on success, -1 on failure
func UnicodeEncodeErrorSetEnd ¶ added in v0.2.3
assign a new value to the end attribute return 0 on success, -1 on failure
func UnicodeEncodeErrorSetReason ¶ added in v0.2.3
assign a new value to the reason attribute return 0 on success, -1 on failure
func UnicodeEncodeErrorSetStart ¶ added in v0.2.3
assign a new value to the start attribute return 0 on success, -1 on failure
func UnicodeGetDefaultEncoding ¶ added in v0.2.0
Returns "utf-8".
func UnicodeInternInPlace ¶ added in v0.2.0
func UnicodeInternInPlace(_llcppg_param1 **Object)
func UnicodeResize ¶ added in v0.2.0
Resize a Unicode object. The length is the number of codepoints.
unicode is modified to point to the new (resized) object and 0 returned on success.
Try to resize the string in place (which is usually faster than allocating a new string and copy characters), or create a new string.
Error handling is implemented as follows: an exception is set, -1 is returned and *unicode left untouched.
WARNING: The function doesn't check string content, the result may not be a string in canonical representation.
func UnicodeTranslateErrorGetEnd ¶ added in v0.2.3
func UnicodeTranslateErrorGetStart ¶ added in v0.2.3
func UnicodeTranslateErrorSetEnd ¶ added in v0.2.3
func UnicodeTranslateErrorSetReason ¶ added in v0.2.3
func UnicodeTranslateErrorSetStart ¶ added in v0.2.3
func UniversalNewlineFgets ¶ added in v0.2.0
func UnstableAtExit ¶ added in v0.2.3
func UnstableAtExit(_llcppg_param1 *InterpreterState, _llcppg_param2 AtexitDatacallbackfunc, _llcppg_param3 unsafe.Pointer) c.Int
func UnstableCodeGetExtra ¶ added in v0.2.3
func UnstableCodeSetExtra ¶ added in v0.2.3
func UnstableCopyPerfMapFile ¶ added in v0.2.0
func UnstableEnableTryIncRef ¶ added in v0.2.3
func UnstableEnableTryIncRef(_llcppg_param1 *Object)
func UnstableInterpreterFrameGetLasti ¶ added in v0.2.3
func UnstableInterpreterFrameGetLasti(frame *X_InterpreterFrame) c.Int
Returns a byte offset into the last executed instruction. Does not raise an exception.
func UnstableInterpreterFrameGetLine ¶ added in v0.2.3
func UnstableInterpreterFrameGetLine(frame *X_InterpreterFrame) c.Int
Returns the currently executing line number, or -1 if there is no line number. Does not raise an exception.
func UnstableIsImmortal ¶ added in v0.2.3
Check whether the object is immortal. This cannot fail.
func UnstableLongIsCompact ¶ added in v0.2.3
func UnstableLongIsCompact(op *LongObject) c.Int
func UnstableObjectClearWeakRefsNoCallbacks ¶ added in v0.2.3
func UnstableObjectClearWeakRefsNoCallbacks(_llcppg_param1 *Object)
func UnstableObjectEnableDeferredRefcount ¶ added in v0.2.3
Enable PEP-703 deferred reference counting on the object.
Returns 1 if deferred reference counting was successfully enabled, and 0 if the runtime ignored it. This function cannot fail.
func UnstableObjectIsUniqueReferencedTemporary ¶ added in v0.2.3
Determine if the object exists as a unique temporary variable on the topmost frame of the interpreter.
func UnstableObjectIsUniquelyReferenced ¶ added in v0.2.3
func UnstablePerfMapStateFini ¶ added in v0.2.0
func UnstablePerfMapStateFini()
func UnstablePerfMapStateInit ¶ added in v0.2.0
func UnstablePerfTrampolineCompileCode ¶ added in v0.2.3
func UnstablePerfTrampolineCompileCode(_llcppg_param1 *CodeObject) c.Int
func UnstablePerfTrampolineSetPersistAfterFork ¶ added in v0.2.0
func UnstableThreadStateResetStackProtection ¶ added in v0.2.3
func UnstableThreadStateResetStackProtection(tstate *ThreadState)
Reset the stack protection start address and stack protection size of a Python thread state
func UnstableThreadStateSetStackProtection ¶ added in v0.2.3
func UnstableThreadStateSetStackProtection(tstate *ThreadState, stack_start_addr unsafe.Pointer, stack_size c.SizeT) c.Int
Set the stack protection start address and stack protection size of a Python thread state
func UnstableTryIncRef ¶ added in v0.2.3
Increments the reference count of the object, if it's not zero. PyUnstable_EnableTryIncRef() should be called on the object before calling this function in order to avoid spurious failures.
func UnstableTypeAssignVersionTag ¶ added in v0.2.3
func UnstableTypeAssignVersionTag(type_ *TypeObject) c.Int
Attempt to assign a version tag to the given type.
Returns 1 if the type already had a valid version tag or a new one was assigned, or 0 if a new tag could not be assigned.
func UnstableWritePerfMapEntry ¶ added in v0.2.0
func Unstable_GC_VisitObjects ¶ added in v0.2.0
func Unstable_GC_VisitObjects(callback GcvisitobjectsT, arg unsafe.Pointer)
func WeakrefIsDead ¶ added in v0.2.3
Test if a weak reference is dead.
func X_ArgParseTupleAndKeywordsFast ¶ added in v0.2.0
func X_BreakPoint ¶ added in v0.2.0
func X_BreakPoint()
func X_BytesResize ¶ added in v0.2.0
func X_CodeCheckLineNumber ¶ added in v0.2.0
func X_CodeCheckLineNumber(lasti c.Int, bounds *CodeAddressRange) c.Int
Update *bounds to describe the first and one-past-the-last instructions in the same line as lasti. Return the number of that line.
func X_ErrBadInternalCall ¶ added in v0.2.0
func X_ErrChainExceptions1 ¶ added in v0.2.0
func X_ErrChainExceptions1(_llcppg_param1 *Object)
Context manipulation (PEP 3134)
func X_EvalSliceIndex ¶ added in v0.2.0
func X_EvalSliceIndexNotNone ¶ added in v0.2.0
func X_ForgetReference ¶ added in v0.2.0
func X_ForgetReference(op *Object)
func X_IncRef ¶ added in v0.2.0
func X_IncRef(_llcppg_param1 *Object)
Similar to Py_IncRef() and Py_DecRef() but the argument must be non-NULL. Private functions used by Py_INCREF() and Py_DECREF().
func X_InterpreterStateRequireIDRef ¶ added in v0.2.0
func X_InterpreterStateRequireIDRef(_llcppg_param1 *InterpreterState, _llcppg_param2 c.Int)
func X_InterpreterStateRequiresIDRef ¶ added in v0.2.0
func X_InterpreterStateRequiresIDRef(_llcppg_param1 *InterpreterState) c.Int
private interpreter helpers
func X_InterpreterStateSetEvalFrameFunc ¶ added in v0.2.0
func X_InterpreterStateSetEvalFrameFunc(interp *InterpreterState, eval_frame X_FrameEvalFunction)
func X_LongAsByteArray ¶ added in v0.2.0
func X_LongAsByteArray(v *LongObject, bytes *uint8, n c.SizeT, little_endian c.Int, is_signed c.Int, with_exceptions c.Int) c.Int
_PyLong_AsByteArray: Convert the least-significant 8*n bits of long v to a base-256 integer, stored in array bytes. Normally return 0, return -1 on error. If little_endian is 1/true, store the MSB at bytes[n-1] and the LSB at bytes[0]; else (little_endian is 0/false) store the MSB at bytes[0] and the LSB at bytes[n-1]. If is_signed is 0/false, it's an error if v < 0; else (v >= 0) n bytes are filled and there's nothing special about bit 0x80 of the MSB. If is_signed is 1/true, bytes is filled with the 2's-complement representation of v's value. Bit 0x80 of the MSB is the sign bit. Error returns (-1): + is_signed is 0 and v < 0. TypeError is set in this case, and bytes isn't altered. + n isn't big enough to hold the full mathematical value of v. For example, if is_signed is 0 and there are more digits in the v than fit in n; or if is_signed is 1, v < 0, and n is just 1 bit shy of being large enough to hold a sign bit. OverflowError is set in this case, but bytes holds the least-significant n bytes of the true value.
func X_LongNumBits ¶ added in v0.2.0
_PyLong_NumBits. Return the number of bits needed to represent the absolute value of a long. For example, this returns 1 for 1 and -1, 2 for 2 and -2, and 2 for 3 and -3. It returns 0 for 0. v must not be NULL, and must be a normalized long. Always successful.
func X_LongSign ¶ added in v0.2.0
func X_MonitoringFireBranchEvent ¶ added in v0.2.0
func X_MonitoringFireBranchLeftEvent ¶ added in v0.2.0
func X_MonitoringFireBranchRightEvent ¶ added in v0.2.0
func X_MonitoringFireCRaiseEvent ¶ added in v0.2.0
func X_MonitoringFireCReturnEvent ¶ added in v0.2.0
func X_MonitoringFireCallEvent ¶ added in v0.2.0
func X_MonitoringFireExceptionHandledEvent ¶ added in v0.2.0
func X_MonitoringFireJumpEvent ¶ added in v0.2.0
func X_MonitoringFireLineEvent ¶ added in v0.2.0
func X_MonitoringFirePyResumeEvent ¶ added in v0.2.0
func X_MonitoringFirePyReturnEvent ¶ added in v0.2.0
func X_MonitoringFirePyStartEvent ¶ added in v0.2.0
func X_MonitoringFirePyThrowEvent ¶ added in v0.2.0
func X_MonitoringFirePyUnwindEvent ¶ added in v0.2.0
func X_MonitoringFirePyYieldEvent ¶ added in v0.2.0
func X_MonitoringFireRaiseEvent ¶ added in v0.2.0
func X_MonitoringFireReraiseEvent ¶ added in v0.2.0
func X_MonitoringFireStopIterationEvent ¶ added in v0.2.0
func X_NewReference ¶ added in v0.2.0
func X_NewReference(op *Object)
func X_NewReferenceNoTotal ¶ added in v0.2.0
func X_NewReferenceNoTotal(op *Object)
func X_ObjectAssertFailed ¶ added in v0.2.0
func X_ObjectAssertFailed(obj *Object, expr *c.Char, msg *c.Char, file *c.Char, line c.Int, function *c.Char)
Declare and define _PyObject_AssertFailed() even when NDEBUG is defined, to avoid causing compiler/linker errors when building extensions without NDEBUG against a Python built with NDEBUG defined.
msg, expr and function can be NULL.
func X_ObjectDump ¶ added in v0.2.0
func X_ObjectDump(_llcppg_param1 *Object)
func X_ObjectGenericSetAttrWithDict ¶ added in v0.2.0
func X_ObjectSetManagedDict ¶ added in v0.2.0
func X_ReachedRecursionLimitWithMargin ¶ added in v0.2.0
func X_ReachedRecursionLimitWithMargin(tstate *ThreadState, margin_count c.Int) c.Int
func X_ResurrectReference ¶ added in v0.2.0
func X_ResurrectReference(op *Object)
func X_SetRefcnt ¶ added in v0.2.0
Py_SET_REFCNT() implementation for stable ABI
func X_SliceGetLongIndices ¶ added in v0.2.0
func X_TrashThreadDepositObject ¶ added in v0.2.0
func X_TrashThreadDepositObject(tstate *ThreadState, op *Object)
func X_TrashThreadDestroyChain ¶ added in v0.2.0
func X_TrashThreadDestroyChain(tstate *ThreadState)
func X_TupleResize ¶ added in v0.2.0
func X_TypeName ¶ added in v0.2.0
func X_TypeName(_llcppg_param1 *TypeObject) *c.Char
func X_UnicodeIsAlpha ¶ added in v0.2.0
func X_UnicodeIsDecimalDigit ¶ added in v0.2.0
func X_UnicodeIsDigit ¶ added in v0.2.0
func X_UnicodeIsLinebreak ¶ added in v0.2.0
func X_UnicodeIsLowercase ¶ added in v0.2.0
These should not be used directly. Use the Py_UNICODE_IS* and Py_UNICODE_TO* macros instead.
These APIs are implemented in Objects/unicodectype.c.
func X_UnicodeIsNumeric ¶ added in v0.2.0
func X_UnicodeIsPrintable ¶ added in v0.2.0
func X_UnicodeIsTitlecase ¶ added in v0.2.0
func X_UnicodeIsUppercase ¶ added in v0.2.0
func X_UnicodeIsWhitespace ¶ added in v0.2.0
func X_UnicodeToDecimalDigit ¶ added in v0.2.0
func X_UnicodeToDigit ¶ added in v0.2.0
func X_UnicodeToNumeric ¶ added in v0.2.0
func X_UnicodeWriterDealloc ¶ added in v0.2.0
func X_UnicodeWriterDealloc(writer *X_UnicodeWriter)
Deallocate memory of a writer (clear its internal buffer).
func X_UnicodeWriterInit ¶ added in v0.2.0
func X_UnicodeWriterInit(writer *X_UnicodeWriter)
Initialize a Unicode writer.
By default, the minimum buffer size is 0 character and overallocation is disabled. Set min_length, min_char and overallocate attributes to control the allocation of the buffer.
func X_UnicodeWriterPrepareInternal ¶ added in v0.2.0
func X_UnicodeWriterPrepareInternal(writer *X_UnicodeWriter, length SsizeT, maxchar UCS4) c.Int
Don't call this function directly, use the _PyUnicodeWriter_Prepare() macro instead.
func X_UnicodeWriterPrepareKindInternal ¶ added in v0.2.0
func X_UnicodeWriterPrepareKindInternal(writer *X_UnicodeWriter, kind c.Int) c.Int
Don't call this function directly, use the _PyUnicodeWriter_PrepareKind() macro instead.
func X_UnicodeWriterWriteASCIIString ¶ added in v0.2.0
Append an ASCII-encoded byte string. Return 0 on success, raise an exception and return -1 on error.
func X_UnicodeWriterWriteChar ¶ added in v0.2.0
func X_UnicodeWriterWriteChar(writer *X_UnicodeWriter, ch UCS4) c.Int
Append a Unicode character. Return 0 on success, raise an exception and return -1 on error.
func X_UnicodeWriterWriteLatin1String ¶ added in v0.2.0
Append a latin1-encoded byte string. Return 0 on success, raise an exception and return -1 on error.
func X_UnicodeWriterWriteStr ¶ added in v0.2.0
func X_UnicodeWriterWriteStr(writer *X_UnicodeWriter, str *Object) c.Int
Append a Unicode string. Return 0 on success, raise an exception and return -1 on error.
func X_UnicodeWriterWriteSubstring ¶ added in v0.2.0
func X_UnicodeWriterWriteSubstring(writer *X_UnicodeWriter, str *Object, start SsizeT, end SsizeT) c.Int
Append a substring of a Unicode string. Return 0 on success, raise an exception and return -1 on error.
func X_WeakrefClearRef ¶ added in v0.2.0
func X_WeakrefClearRef(self *WeakReference)
Types ¶
type ASCIIObject ¶ added in v0.2.0
ASCII-only strings created through PyUnicode_New use the PyASCIIObject structure. state.ascii and state.compact are set, and the data immediately follow the structure. utf8_length can be found in the length field; the utf8 pointer is equal to the data pointer.
type Allocfunc ¶
type Allocfunc = func(_llcppg_param1 *TypeObject, _llcppg_param2 SsizeT) *Object
llgo:type C
type AsyncGenObject ¶ added in v0.2.0
type AsyncGenObject = X_AsyncGenObject
--- Asynchronous Generators --------------------------------------------
type AsyncMethods ¶ added in v0.2.0
type AtexitDatacallbackfunc ¶
llgo:type C
type AttributeErrorObject ¶ added in v0.2.0
type AuditHookFunction ¶ added in v0.2.0
type AuditHookFunction = func(_llcppg_param1 *c.Char, _llcppg_param2 *Object, _llcppg_param3 unsafe.Pointer) c.Int
llgo:type C
type BaseExceptionGroupObject ¶ added in v0.2.0
type BaseExceptionObject ¶ added in v0.2.0
type Binaryfunc ¶
llgo:type C
type Buffer ¶ added in v0.2.0
type Buffer struct {
Buf unsafe.Pointer
Obj *Object
Len SsizeT
Itemsize SsizeT
Readonly c.Int
Ndim c.Int
Format *c.Char
Shape *SsizeT
Strides *SsizeT
Suboffsets *SsizeT
Internal unsafe.Pointer
}
=== New Buffer API ============================================ Limited API and stable ABI since Python 3.11
Py_buffer struct layout and size is now part of the stable abi3. The struct layout and size must not be changed in any way, as it would break the ABI.
func PickleBufferGetBuffer ¶ added in v0.2.3
Get the PickleBuffer's underlying view to the original object (NULL if released)
func (*Buffer) FillInfo ¶ added in v0.2.0
func (self *Buffer) FillInfo(o *Object, buf unsafe.Pointer, len SsizeT, readonly c.Int, flags c.Int) c.Int
Fills in a buffer-info structure correctly for an exporter that can only share a contiguous chunk of memory of "unsigned bytes" of the given length.
Returns 0 on success and -1 (with raising an error) on error.
llgo:link (*Buffer).FillInfo C.PyBuffer_FillInfo
func (*Buffer) IsContiguous ¶ added in v0.2.0
Copy the data from the src buffer to the buffer of destination.
llgo:link (*Buffer).IsContiguous C.PyBuffer_IsContiguous
type BufferProcs ¶ added in v0.2.0
type BufferProcs struct {
BfGetbuffer Getbufferproc
BfReleasebuffer Releasebufferproc
}
type ByteArrayObject ¶ added in v0.2.0
type ByteArrayObject struct {
ObBase VarObject
ObAlloc SsizeT
ObBytes *c.Char
ObStart *c.Char
ObExports SsizeT
}
Object layout
func ByteArrayFromStringAndSize ¶ added in v0.2.0
func ByteArrayFromStringAndSize(_llcppg_param1 *c.Char, _llcppg_param2 SsizeT) *ByteArrayObject
func (*ByteArrayObject) AsString ¶ added in v0.2.3
func (self *ByteArrayObject) AsString() *c.Char
llgo:link (*ByteArrayObject).AsString C.PyByteArray_AsString
func (*ByteArrayObject) Concat ¶ added in v0.2.3
func (self *ByteArrayObject) Concat(_llcppg_param2 *Object) *Object
llgo:link (*ByteArrayObject).Concat C.PyByteArray_Concat
func (*ByteArrayObject) Resize ¶ added in v0.2.3
func (self *ByteArrayObject) Resize(_llcppg_param2 SsizeT) c.Int
llgo:link (*ByteArrayObject).Resize C.PyByteArray_Resize
func (*ByteArrayObject) Size ¶ added in v0.2.3
func (self *ByteArrayObject) Size() SsizeT
llgo:link (*ByteArrayObject).Size C.PyByteArray_Size
type BytesObject ¶ added in v0.2.0
func BytesFromFormat ¶ added in v0.2.0
func BytesFromFormat(_llcppg_param1 *c.Char, __llgo_va_list ...any) *BytesObject
func BytesFromFormatV ¶ added in v0.2.4
func BytesFromFormatV(_llcppg_param1 *c.Char, _llcppg_param2 c.VaList) *BytesObject
func BytesFromString ¶ added in v0.2.0
func BytesFromString(_llcppg_param1 *c.Char) *BytesObject
func BytesFromStringAndSize ¶ added in v0.2.0
func BytesFromStringAndSize(_llcppg_param1 *c.Char, _llcppg_param2 SsizeT) *BytesObject
func (*BytesObject) AsString ¶ added in v0.2.3
func (self *BytesObject) AsString() *c.Char
llgo:link (*BytesObject).AsString C.PyBytes_AsString
func (*BytesObject) AsStringAndSize ¶ added in v0.2.3
Provides access to the internal data buffer and size of a bytes object. Passing NULL as len parameter will force the string buffer to be 0-terminated (passing a string with embedded NUL characters will cause an exception).
llgo:link (*BytesObject).AsStringAndSize C.PyBytes_AsStringAndSize
func (*BytesObject) Join ¶ added in v0.2.3
func (self *BytesObject) Join(iterable *Object) *Object
llgo:link (*BytesObject).Join C.PyBytes_Join
func (*BytesObject) Repr ¶ added in v0.2.3
func (self *BytesObject) Repr(_llcppg_param2 c.Int) *Object
llgo:link (*BytesObject).Repr C.PyBytes_Repr
func (*BytesObject) Size ¶ added in v0.2.3
func (self *BytesObject) Size() SsizeT
llgo:link (*BytesObject).Size C.PyBytes_Size
type CFunctionFast ¶ added in v0.2.0
type CFunctionFast = func(_llcppg_param1 *Object, _llcppg_param2 **Object, _llcppg_param3 SsizeT) *Object
llgo:type C
type CFunctionFastWithKeywords ¶ added in v0.2.0
type CFunctionFastWithKeywords = func(_llcppg_param1 *Object, _llcppg_param2 **Object, _llcppg_param3 SsizeT, _llcppg_param4 *Object) *Object
llgo:type C
type CFunctionObject ¶ added in v0.2.0
type CFunctionObject struct {
ObBase Object
MMl *MethodDef
MSelf *Object
MModule *Object
MWeakreflist *Object
Vectorcall Vectorcallfunc
}
PyCFunctionObject structure
func NewCFunction ¶ added in v0.2.3
func NewCFunction(_llcppg_param1 *MethodDef, _llcppg_param2 *Object) *CFunctionObject
PyCFunction_New is declared as a function for stable ABI (declaration is needed for e.g. GCC with -fvisibility=hidden), but redefined as a macro that calls PyCFunction_NewEx.
func (*CFunctionObject) Flags ¶ added in v0.2.3
func (self *CFunctionObject) Flags() c.Int
llgo:link (*CFunctionObject).Flags C.PyCFunction_GetFlags
func (*CFunctionObject) Function ¶ added in v0.2.3
func (self *CFunctionObject) Function() CFunction
llgo:link (*CFunctionObject).Function C.PyCFunction_GetFunction
func (*CFunctionObject) Self ¶ added in v0.2.3
func (self *CFunctionObject) Self() *Object
llgo:link (*CFunctionObject).Self C.PyCFunction_GetSelf
type CFunctionWithKeywords ¶ added in v0.2.0
type CFunctionWithKeywords = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) *Object
llgo:type C
type CMethod ¶ added in v0.2.0
type CMethod = func(_llcppg_param1 *Object, _llcppg_param2 *TypeObject, _llcppg_param3 **Object, _llcppg_param4 SsizeT, _llcppg_param5 *Object) *Object
llgo:type C
type CMethodObject ¶ added in v0.2.0
type CMethodObject struct {
Func CFunctionObject
MmClass *TypeObject
}
PyCMethodObject structure
func NewCMethod ¶ added in v0.2.3
func NewCMethod(_llcppg_param1 *MethodDef, _llcppg_param2 *Object, _llcppg_param3 *Object, _llcppg_param4 *TypeObject) *CMethodObject
type CapsuleDestructor ¶ added in v0.2.0
type CapsuleDestructor = func(_llcppg_param1 *Object)
llgo:type C
func CapsuleGetDestructor ¶ added in v0.2.3
func CapsuleGetDestructor(capsule *Object) CapsuleDestructor
type CellObject ¶ added in v0.2.0
func NewCell ¶ added in v0.2.3
func NewCell(_llcppg_param1 *Object) *CellObject
func (*CellObject) Get ¶ added in v0.2.3
func (self *CellObject) Get() *Object
llgo:link (*CellObject).Get C.PyCell_Get
type CodeAddressRange ¶ added in v0.2.0
type CodeAddressRange = X_lineOffsets
type CodeObject ¶ added in v0.2.0
type CodeObject struct {
ObBase VarObject
CoConsts *Object
CoNames *Object
CoExceptiontable *Object
CoFlags c.Int
CoArgcount c.Int
CoPosonlyargcount c.Int
CoKwonlyargcount c.Int
CoStacksize c.Int
CoFirstlineno c.Int
CoNlocalsplus c.Int
CoFramesize c.Int
CoNlocals c.Int
CoNcellvars c.Int
CoNfreevars c.Int
CoVersion c.Uint32T
CoLocalsplusnames *Object
CoLocalspluskinds *Object
CoFilename *Object
CoName *Object
CoQualname *Object
CoLinetable *Object
CoWeakreflist *Object
CoExecutors *X_ExecutorArray
X_coCached *X_CoCached
X_coInstrumentationVersion c.UintptrT
X_coMonitoring *X_CoMonitoringData
X_coUniqueId SsizeT
X_coFirsttraceable c.Int
CoExtra unsafe.Pointer
CoCodeAdaptive [1]c.Char
}
Bytecode object
func CodeNewEmpty ¶ added in v0.2.0
Creates a new empty code object with the specified source location.
func UnstableCodeNew ¶ added in v0.2.0
func UnstableCodeNew(_llcppg_param1 c.Int, _llcppg_param2 c.Int, _llcppg_param3 c.Int, _llcppg_param4 c.Int, _llcppg_param5 c.Int, _llcppg_param6 *Object, _llcppg_param7 *Object, _llcppg_param8 *Object, _llcppg_param9 *Object, _llcppg_param10 *Object, _llcppg_param11 *Object, _llcppg_param12 *Object, _llcppg_param13 *Object, _llcppg_param14 *Object, _llcppg_param15 c.Int, _llcppg_param16 *Object, _llcppg_param17 *Object) *CodeObject
Unstable public interface
func UnstableCodeNewWithPosOnlyArgs ¶ added in v0.2.0
func UnstableCodeNewWithPosOnlyArgs(_llcppg_param1 c.Int, _llcppg_param2 c.Int, _llcppg_param3 c.Int, _llcppg_param4 c.Int, _llcppg_param5 c.Int, _llcppg_param6 c.Int, _llcppg_param7 *Object, _llcppg_param8 *Object, _llcppg_param9 *Object, _llcppg_param10 *Object, _llcppg_param11 *Object, _llcppg_param12 *Object, _llcppg_param13 *Object, _llcppg_param14 *Object, _llcppg_param15 *Object, _llcppg_param16 c.Int, _llcppg_param17 *Object, _llcppg_param18 *Object) *CodeObject
func (*CodeObject) Addr2Line ¶ added in v0.2.3
func (self *CodeObject) Addr2Line(_llcppg_param2 c.Int) c.Int
Return the line number associated with the specified bytecode index in this code object. If you just need the line number of a frame, use PyFrame_GetLineNumber() instead.
llgo:link (*CodeObject).Addr2Line C.PyCode_Addr2Line
func (*CodeObject) Addr2Location ¶ added in v0.2.3
func (self *CodeObject) Addr2Location(_llcppg_param2 c.Int, _llcppg_param3 *c.Int, _llcppg_param4 *c.Int, _llcppg_param5 *c.Int, _llcppg_param6 *c.Int) c.Int
llgo:link (*CodeObject).Addr2Location C.PyCode_Addr2Location
func (*CodeObject) Cellvars ¶ added in v0.2.3
func (self *CodeObject) Cellvars() *Object
Equivalent to getattr(code, 'co_cellvars') in Python.
llgo:link (*CodeObject).Cellvars C.PyCode_GetCellvars
func (*CodeObject) Freevars ¶ added in v0.2.3
func (self *CodeObject) Freevars() *Object
Equivalent to getattr(code, 'co_freevars') in Python.
llgo:link (*CodeObject).Freevars C.PyCode_GetFreevars
func (*CodeObject) Get ¶ added in v0.2.3
func (self *CodeObject) Get() *Object
Equivalent to getattr(code, 'co_code') in Python. Returns a strong reference to a bytes object.
llgo:link (*CodeObject).Get C.PyCode_GetCode
func (*CodeObject) Optimize ¶ added in v0.2.3
func (self *CodeObject) Optimize(consts *Object, names *Object, lnotab *Object) *Object
llgo:link (*CodeObject).Optimize C.PyCode_Optimize
func (*CodeObject) Varnames ¶ added in v0.2.3
func (self *CodeObject) Varnames() *Object
Equivalent to getattr(code, 'co_varnames') in Python.
llgo:link (*CodeObject).Varnames C.PyCode_GetVarnames
type CodeWatchCallback ¶ added in v0.2.0
type CodeWatchCallback = func(_llcppg_param1 CodeEvent, _llcppg_param2 *CodeObject) c.Int
A callback that is invoked for different events in a code object's lifecycle.
The callback is invoked with a borrowed reference to co, after it is created and before it is destroyed.
If the callback sets an exception, it must return -1. Otherwise it should return 0.
llgo:type C
type CompactUnicodeObject ¶ added in v0.2.0
type CompactUnicodeObject struct {
X_base ASCIIObject
Utf8Length SsizeT
Utf8 *c.Char
}
Non-ASCII strings allocated through PyUnicode_New use the PyCompactUnicodeObject structure. state.compact is set, and the data immediately follow the structure.
type CompilerFlags ¶ added in v0.2.0
type ComplexObject ¶ added in v0.2.0
PyComplexObject represents a complex number with double-precision real and imaginary parts.
func ComplexFromCComplex ¶ added in v0.2.4
func ComplexFromCComplex(_llcppg_param1 Complex) *ComplexObject
func ComplexFromDoubles ¶ added in v0.2.0
func ComplexFromDoubles(real c.Double, imag c.Double) *ComplexObject
func (*ComplexObject) AsC ¶ added in v0.2.3
func (self *ComplexObject) AsC() Complex
llgo:link (*ComplexObject).AsC C.PyComplex_AsCComplex
func (*ComplexObject) ImagAsDouble ¶ added in v0.2.3
func (self *ComplexObject) ImagAsDouble() c.Double
llgo:link (*ComplexObject).ImagAsDouble C.PyComplex_ImagAsDouble
func (*ComplexObject) RealAsDouble ¶ added in v0.2.3
func (self *ComplexObject) RealAsDouble() c.Double
llgo:link (*ComplexObject).RealAsDouble C.PyComplex_RealAsDouble
type Config ¶ added in v0.2.0
type Config struct {
X_configInit c.Int
Isolated c.Int
UseEnvironment c.Int
DevMode c.Int
InstallSignalHandlers c.Int
UseHashSeed c.Int
HashSeed c.Ulong
Faulthandler c.Int
Tracemalloc c.Int
PerfProfiling c.Int
RemoteDebug c.Int
ImportTime c.Int
CodeDebugRanges c.Int
ShowRefCount c.Int
DumpRefs c.Int
DumpRefsFile *c.WcharT
MallocStats c.Int
FilesystemEncoding *c.WcharT
FilesystemErrors *c.WcharT
PycachePrefix *c.WcharT
ParseArgv c.Int
OrigArgv WideStringList
Argv WideStringList
Xoptions WideStringList
Warnoptions WideStringList
SiteImport c.Int
BytesWarning c.Int
WarnDefaultEncoding c.Int
Inspect c.Int
Interactive c.Int
OptimizationLevel c.Int
ParserDebug c.Int
WriteBytecode c.Int
Verbose c.Int
Quiet c.Int
UserSiteDirectory c.Int
ConfigureCStdio c.Int
BufferedStdio c.Int
StdioEncoding *c.WcharT
StdioErrors *c.WcharT
CheckHashPycsMode *c.WcharT
UseFrozenModules c.Int
SafePath c.Int
IntMaxStrDigits c.Int
ThreadInheritContext c.Int
ContextAwareWarnings c.Int
UseSystemLogger c.Int
CpuCount c.Int
PathconfigWarnings c.Int
ProgramName *c.WcharT
PythonpathEnv *c.WcharT
Home *c.WcharT
Platlibdir *c.WcharT
ModuleSearchPathsSet c.Int
ModuleSearchPaths WideStringList
StdlibDir *c.WcharT
Executable *c.WcharT
BaseExecutable *c.WcharT
Prefix *c.WcharT
BasePrefix *c.WcharT
ExecPrefix *c.WcharT
BaseExecPrefix *c.WcharT
SkipSourceFirstLine c.Int
RunCommand *c.WcharT
RunModule *c.WcharT
RunFilename *c.WcharT
SysPath0 *c.WcharT
X_installImportlib c.Int
X_initMain c.Int
X_isPythonBuild c.Int
}
This structure is best documented in the Doc/c-api/init_config.rst file.
func (*Config) Clear ¶ added in v0.2.0
func (self *Config) Clear()
llgo:link (*Config).Clear C.PyConfig_Clear
func (*Config) InitIsolated ¶ added in v0.2.0
func (self *Config) InitIsolated()
llgo:link (*Config).InitIsolated C.PyConfig_InitIsolatedConfig
func (*Config) InitPython ¶ added in v0.2.0
func (self *Config) InitPython()
llgo:link (*Config).InitPython C.PyConfig_InitPythonConfig
func (*Config) SetBytesArgv ¶ added in v0.2.0
llgo:link (*Config).SetBytesArgv C.PyConfig_SetBytesArgv
func (*Config) SetBytesString ¶ added in v0.2.0
llgo:link (*Config).SetBytesString C.PyConfig_SetBytesString
func (*Config) SetWideStringList ¶ added in v0.2.0
llgo:link (*Config).SetWideStringList C.PyConfig_SetWideStringList
type Context ¶ added in v0.2.0
type Context = X_pycontextobject
type ContextEvent ¶ added in v0.2.0
const CONTEXT_SWITCHED ContextEvent = 1
type ContextToken ¶ added in v0.2.0
type ContextToken = X_pycontexttokenobject
type ContextVar ¶ added in v0.2.0
type ContextVar = X_pycontextvarobject
type ContextWatchCallback ¶ added in v0.2.0
type ContextWatchCallback = func(_llcppg_param1 ContextEvent, _llcppg_param2 *Object) c.Int
Context object watcher callback function. The object passed to the callback is event-specific; see PyContextEvent for details.
if the callback returns with an exception set, it must return -1. Otherwise it should return 0
llgo:type C
type CoroObject ¶ added in v0.2.0
type CoroObject = X_CoroObject
--- PyCoroObject -------------------------------------------------------
type CriticalSection ¶ added in v0.2.0
type CriticalSection struct {
}
func (*CriticalSection) Begin ¶ added in v0.2.0
func (self *CriticalSection) Begin(op *Object)
llgo:link (*CriticalSection).Begin C.PyCriticalSection_Begin
func (*CriticalSection) BeginMutex ¶ added in v0.2.0
func (self *CriticalSection) BeginMutex(m *Mutex)
llgo:link (*CriticalSection).BeginMutex C.PyCriticalSection_BeginMutex
func (*CriticalSection) End ¶ added in v0.2.0
func (self *CriticalSection) End()
llgo:link (*CriticalSection).End C.PyCriticalSection_End
type CriticalSection2 ¶ added in v0.2.0
type CriticalSection2 struct {
}
func (*CriticalSection2) Begin ¶ added in v0.2.0
func (self *CriticalSection2) Begin(a *Object, b *Object)
llgo:link (*CriticalSection2).Begin C.PyCriticalSection2_Begin
func (*CriticalSection2) BeginMutex ¶ added in v0.2.0
func (self *CriticalSection2) BeginMutex(m1 *Mutex, m2 *Mutex)
llgo:link (*CriticalSection2).BeginMutex C.PyCriticalSection2_BeginMutex
func (*CriticalSection2) End ¶ added in v0.2.0
func (self *CriticalSection2) End()
llgo:link (*CriticalSection2).End C.PyCriticalSection2_End
type DescrObject ¶ added in v0.2.0
type DescrObject struct {
ObBase Object
DType *TypeObject
DName *Object
DQualname *Object
}
Various kinds of descriptor objects
func (*DescrObject) IsData ¶ added in v0.2.3
func (self *DescrObject) IsData() c.Int
llgo:link (*DescrObject).IsData C.PyDescr_IsData
type Descrgetfunc ¶
type Descrgetfunc = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) *Object
llgo:type C
type Descrsetfunc ¶
type Descrsetfunc = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) c.Int
llgo:type C
type DictKeysObject ¶ added in v0.2.0
type DictKeysObject = X_dictkeysobject
type DictObject ¶ added in v0.2.0
type DictObject struct {
ObBase Object
MaUsed SsizeT
X_maWatcherTag c.Uint64T
MaKeys *DictKeysObject
MaValues *DictValues
}
The ma_values pointer is NULL for a combined table or points to an array of PyObject* for a split table
func NewDict ¶ added in v0.2.3
func NewDict() *DictObject
func (*DictObject) Clear ¶ added in v0.2.3
func (self *DictObject) Clear()
llgo:link (*DictObject).Clear C.PyDict_Clear
func (*DictObject) Contains ¶ added in v0.2.3
func (self *DictObject) Contains(key *Object) c.Int
llgo:link (*DictObject).Contains C.PyDict_Contains
func (*DictObject) ContainsString ¶ added in v0.2.3
func (self *DictObject) ContainsString(key *c.Char) c.Int
llgo:link (*DictObject).ContainsString C.PyDict_ContainsString
func (*DictObject) Copy ¶ added in v0.2.3
func (self *DictObject) Copy() *Object
llgo:link (*DictObject).Copy C.PyDict_Copy
func (*DictObject) DelItem ¶ added in v0.2.3
func (self *DictObject) DelItem(key *Object) c.Int
llgo:link (*DictObject).DelItem C.PyDict_DelItem
func (*DictObject) DelItemString ¶ added in v0.2.3
func (self *DictObject) DelItemString(key *c.Char) c.Int
llgo:link (*DictObject).DelItemString C.PyDict_DelItemString
func (*DictObject) Item ¶ added in v0.2.3
func (self *DictObject) Item(key *Object) *Object
llgo:link (*DictObject).Item C.PyDict_GetItem
func (*DictObject) ItemRef ¶ added in v0.2.3
func (self *DictObject) ItemRef(key *Object, result **Object) c.Int
Return the object from dictionary *op* which has a key *key*.
- If the key is present, set *result to a new strong reference to the value and return 1.
- If the key is missing, set *result to NULL and return 0 .
- On error, raise an exception and return -1.
llgo:link (*DictObject).ItemRef C.PyDict_GetItemRef
func (*DictObject) ItemString ¶ added in v0.2.3
func (self *DictObject) ItemString(key *c.Char) *Object
llgo:link (*DictObject).ItemString C.PyDict_GetItemString
func (*DictObject) ItemStringRef ¶ added in v0.2.3
llgo:link (*DictObject).ItemStringRef C.PyDict_GetItemStringRef
func (*DictObject) ItemWithError ¶ added in v0.2.3
func (self *DictObject) ItemWithError(key *Object) *Object
llgo:link (*DictObject).ItemWithError C.PyDict_GetItemWithError
func (*DictObject) Items ¶ added in v0.2.3
func (self *DictObject) Items() *Object
llgo:link (*DictObject).Items C.PyDict_Items
func (*DictObject) Keys ¶ added in v0.2.3
func (self *DictObject) Keys() *Object
llgo:link (*DictObject).Keys C.PyDict_Keys
func (*DictObject) Merge ¶ added in v0.2.3
PyDict_Merge updates/merges from a mapping object (an object that supports PyMapping_Keys() and PyObject_GetItem()). If override is true, the last occurrence of a key wins, else the first. The Python dict.update(other) is equivalent to PyDict_Merge(dict, other, 1).
llgo:link (*DictObject).Merge C.PyDict_Merge
func (*DictObject) MergeFromSeq2 ¶ added in v0.2.3
PyDict_MergeFromSeq2 updates/merges from an iterable object producing iterable objects of length 2. If override is true, the last occurrence of a key wins, else the first. The Python dict constructor dict(seq2) is equivalent to dict={}; PyDict_MergeFromSeq(dict, seq2, 1).
llgo:link (*DictObject).MergeFromSeq2 C.PyDict_MergeFromSeq2
func (*DictObject) Pop ¶ added in v0.2.3
func (self *DictObject) Pop(key *Object, result **Object) c.Int
llgo:link (*DictObject).Pop C.PyDict_Pop
func (*DictObject) SetDefault ¶ added in v0.2.3
func (self *DictObject) SetDefault(key *Object, defaultobj *Object) *Object
llgo:link (*DictObject).SetDefault C.PyDict_SetDefault
func (*DictObject) SetDefaultRef ¶ added in v0.2.3
Inserts `key` with a value `default_value`, if `key` is not already present in the dictionary. If `result` is not NULL, then the value associated with `key` is returned in `*result` (either the existing value, or the now inserted `default_value`). Returns:
-1 on error 0 if `key` was not present and `default_value` was inserted 1 if `key` was present and `default_value` was not inserted
llgo:link (*DictObject).SetDefaultRef C.PyDict_SetDefaultRef
func (*DictObject) SetItem ¶ added in v0.2.3
func (self *DictObject) SetItem(key *Object, item *Object) c.Int
llgo:link (*DictObject).SetItem C.PyDict_SetItem
func (*DictObject) SetItemString ¶ added in v0.2.3
llgo:link (*DictObject).SetItemString C.PyDict_SetItemString
func (*DictObject) Size ¶ added in v0.2.3
func (self *DictObject) Size() SsizeT
llgo:link (*DictObject).Size C.PyDict_Size
func (*DictObject) Update ¶ added in v0.2.3
func (self *DictObject) Update(other *Object) c.Int
PyDict_Update(mp, other) is equivalent to PyDict_Merge(mp, other, 1).
llgo:link (*DictObject).Update C.PyDict_Update
func (*DictObject) Values ¶ added in v0.2.3
func (self *DictObject) Values() *Object
llgo:link (*DictObject).Values C.PyDict_Values
type DictValues ¶ added in v0.2.0
type DictValues = X_dictvalues
type DictWatchCallback ¶ added in v0.2.0
type DictWatchCallback = func(_llcppg_param1 DictWatchEvent, _llcppg_param2 *Object, _llcppg_param3 *Object, _llcppg_param4 *Object) c.Int
Callback to be invoked when a watched dict is cleared, dealloced, or modified. In clear/dealloc case, key and new_value will be NULL. Otherwise, new_value will be the new value for key, NULL if key is being deleted.
llgo:type C
type DictWatchEvent ¶ added in v0.2.0
const ( Dict_EVENT_ADDED DictWatchEvent = 0 Dict_EVENT_MODIFIED DictWatchEvent = 1 Dict_EVENT_DELETED DictWatchEvent = 2 Dict_EVENT_CLONED DictWatchEvent = 3 Dict_EVENT_CLEARED DictWatchEvent = 4 Dict_EVENT_DEALLOCATED DictWatchEvent = 5 )
type EnvironmentErrorObject ¶ added in v0.2.0
type EnvironmentErrorObject = OSErrorObject
Compatibility typedefs
type FloatObject ¶ added in v0.2.0
func FloatFromDouble ¶ added in v0.2.0
func FloatFromDouble(_llcppg_param1 c.Double) *FloatObject
Return Python float from C double.
func FloatFromString ¶ added in v0.2.4
func FloatFromString(_llcppg_param1 *Object) *FloatObject
Return Python float from string PyObject.
func (*FloatObject) AsDouble ¶ added in v0.2.3
func (self *FloatObject) AsDouble() c.Double
Extract C double from Python float. The macro version trades safety for speed.
llgo:link (*FloatObject).AsDouble C.PyFloat_AsDouble
type FrameConstructor ¶ added in v0.2.0
type FrameObject ¶ added in v0.2.0
type FrameObject = X_frame
func EvalGetFrame ¶ added in v0.2.0
func EvalGetFrame() *FrameObject
func (*FrameObject) Back ¶ added in v0.2.3
func (self *FrameObject) Back() *FrameObject
llgo:link (*FrameObject).Back C.PyFrame_GetBack
func (*FrameObject) Builtins ¶ added in v0.2.3
func (self *FrameObject) Builtins() *Object
llgo:link (*FrameObject).Builtins C.PyFrame_GetBuiltins
func (*FrameObject) Code ¶ added in v0.2.3
func (self *FrameObject) Code() *CodeObject
llgo:link (*FrameObject).Code C.PyFrame_GetCode
func (*FrameObject) GenNewWithQualName ¶ added in v0.2.3
func (self *FrameObject) GenNewWithQualName(name *Object, qualname *Object) *Object
llgo:link (*FrameObject).GenNewWithQualName C.PyGen_NewWithQualName
func (*FrameObject) Generator ¶ added in v0.2.3
func (self *FrameObject) Generator() *Object
llgo:link (*FrameObject).Generator C.PyFrame_GetGenerator
func (*FrameObject) Globals ¶ added in v0.2.3
func (self *FrameObject) Globals() *Object
llgo:link (*FrameObject).Globals C.PyFrame_GetGlobals
func (*FrameObject) Lasti ¶ added in v0.2.3
func (self *FrameObject) Lasti() c.Int
llgo:link (*FrameObject).Lasti C.PyFrame_GetLasti
func (*FrameObject) LineNumber ¶ added in v0.2.3
func (self *FrameObject) LineNumber() c.Int
Return the line of code the frame is currently executing.
llgo:link (*FrameObject).LineNumber C.PyFrame_GetLineNumber
func (*FrameObject) Locals ¶ added in v0.2.3
func (self *FrameObject) Locals() *Object
llgo:link (*FrameObject).Locals C.PyFrame_GetLocals
func (*FrameObject) Var ¶ added in v0.2.3
func (self *FrameObject) Var(name *Object) *Object
llgo:link (*FrameObject).Var C.PyFrame_GetVar
type FunctionObject ¶ added in v0.2.0
type FunctionObject struct {
ObBase Object
FuncGlobals *Object
FuncBuiltins *Object
FuncName *Object
FuncQualname *Object
FuncCode *Object
FuncDefaults *Object
FuncKwdefaults *Object
FuncClosure *Object
FuncDoc *Object
FuncDict *Object
FuncWeakreflist *Object
FuncModule *Object
FuncAnnotations *Object
FuncAnnotate *Object
FuncTypeparams *Object
Vectorcall Vectorcallfunc
FuncVersion c.Uint32T
}
Function objects and code objects should not be confused with each other:
Function objects are created by the execution of the 'def' statement. They reference a code object in their __code__ attribute, which is a purely syntactic object, i.e. nothing more than a compiled version of some source code lines. There is one code object per source code "fragment", but each code object can be referenced by zero or many function objects depending only on how many times the 'def' statement in the source was executed so far.
func NewFunction ¶ added in v0.2.3
func NewFunction(_llcppg_param1 *Object, _llcppg_param2 *Object) *FunctionObject
func (*FunctionObject) Annotations ¶ added in v0.2.3
func (self *FunctionObject) Annotations() *Object
llgo:link (*FunctionObject).Annotations C.PyFunction_GetAnnotations
func (*FunctionObject) Closure ¶ added in v0.2.3
func (self *FunctionObject) Closure() *Object
llgo:link (*FunctionObject).Closure C.PyFunction_GetClosure
func (*FunctionObject) Code ¶ added in v0.2.3
func (self *FunctionObject) Code() *Object
llgo:link (*FunctionObject).Code C.PyFunction_GetCode
func (*FunctionObject) Defaults ¶ added in v0.2.3
func (self *FunctionObject) Defaults() *Object
llgo:link (*FunctionObject).Defaults C.PyFunction_GetDefaults
func (*FunctionObject) Globals ¶ added in v0.2.3
func (self *FunctionObject) Globals() *Object
llgo:link (*FunctionObject).Globals C.PyFunction_GetGlobals
func (*FunctionObject) KwDefaults ¶ added in v0.2.3
func (self *FunctionObject) KwDefaults() *Object
llgo:link (*FunctionObject).KwDefaults C.PyFunction_GetKwDefaults
func (*FunctionObject) Module ¶ added in v0.2.3
func (self *FunctionObject) Module() *Object
llgo:link (*FunctionObject).Module C.PyFunction_GetModule
func (*FunctionObject) NewWithQualName ¶ added in v0.2.3
func (self *FunctionObject) NewWithQualName(_llcppg_param2 *Object, _llcppg_param3 *Object) *Object
llgo:link (*FunctionObject).NewWithQualName C.PyFunction_NewWithQualName
func (*FunctionObject) SetAnnotations ¶ added in v0.2.3
func (self *FunctionObject) SetAnnotations(_llcppg_param2 *Object) c.Int
llgo:link (*FunctionObject).SetAnnotations C.PyFunction_SetAnnotations
func (*FunctionObject) SetClosure ¶ added in v0.2.3
func (self *FunctionObject) SetClosure(_llcppg_param2 *Object) c.Int
llgo:link (*FunctionObject).SetClosure C.PyFunction_SetClosure
func (*FunctionObject) SetDefaults ¶ added in v0.2.3
func (self *FunctionObject) SetDefaults(_llcppg_param2 *Object) c.Int
llgo:link (*FunctionObject).SetDefaults C.PyFunction_SetDefaults
func (*FunctionObject) SetKwDefaults ¶ added in v0.2.3
func (self *FunctionObject) SetKwDefaults(_llcppg_param2 *Object) c.Int
llgo:link (*FunctionObject).SetKwDefaults C.PyFunction_SetKwDefaults
func (*FunctionObject) SetVectorcall ¶ added in v0.2.3
func (self *FunctionObject) SetVectorcall(_llcppg_param2 Vectorcallfunc)
llgo:link (*FunctionObject).SetVectorcall C.PyFunction_SetVectorcall
type FunctionWatchCallback ¶ added in v0.2.0
type FunctionWatchCallback = func(_llcppg_param1 FunctionWatchEvent, _llcppg_param2 *FunctionObject, _llcppg_param3 *Object) c.Int
A callback that is invoked for different events in a function's lifecycle.
The callback is invoked with a borrowed reference to func, after it is created and before it is modified or destroyed. The callback should not modify func.
When a function's code object, defaults, or kwdefaults are modified the callback will be invoked with the respective event and new_value will contain a borrowed reference to the new value that is about to be stored in the function. Otherwise the third argument is NULL.
If the callback returns with an exception set, it must return -1. Otherwise it should return 0.
llgo:type C
type FunctionWatchEvent ¶ added in v0.2.0
const ( Function_EVENT_CREATE FunctionWatchEvent = 0 Function_EVENT_DESTROY FunctionWatchEvent = 1 Function_EVENT_MODIFY_CODE FunctionWatchEvent = 2 Function_EVENT_MODIFY_DEFAULTS FunctionWatchEvent = 3 Function_EVENT_MODIFY_KWDEFAULTS FunctionWatchEvent = 4 )
type GILState_STATE ¶ added in v0.2.0
const ( GILState_LOCKED GILState_STATE = 0 GILState_UNLOCKED GILState_STATE = 1 )
func GILStateEnsure ¶ added in v0.2.0
func GILStateEnsure() GILState_STATE
Ensure that the current thread is ready to call the Python C API, regardless of the current state of Python, or of its thread lock. This may be called as many times as desired by a thread so long as each call is matched with a call to PyGILState_Release(). In general, other thread-state APIs may be used between _Ensure() and _Release() calls, so long as the thread-state is restored to its previous state before the Release(). For example, normal use of the Py_BEGIN_ALLOW_THREADS/ Py_END_ALLOW_THREADS macros are acceptable.
The return value is an opaque "handle" to the thread state when PyGILState_Ensure() was called, and must be passed to PyGILState_Release() to ensure Python is left in the same state. Even though recursive calls are allowed, these handles can *not* be shared - each unique call to PyGILState_Ensure must save the handle for its call to PyGILState_Release.
When the function returns, the current thread will hold the GIL.
Failure is a fatal error.
type GcvisitobjectsT ¶
Visit all live GC-capable objects, similar to gc.get_objects(None). The supplied callback is called on every such object with the void* arg set to the supplied arg. Returning 0 from the callback ends iteration, returning 1 allows iteration to continue. Returning any other value may result in undefined behaviour.
If new objects are (de)allocated by the callback it is undefined if they will be visited.
Garbage collection is disabled during operation. Explicitly running a collection in the callback may lead to undefined behaviour e.g. visiting the same objects multiple times or not at all.
llgo:type C
type GenObject ¶ added in v0.2.0
type GenObject = X_GenObject
--- Generators ---------------------------------------------------------
func (*GenObject) Code ¶ added in v0.2.3
func (self *GenObject) Code() *CodeObject
llgo:link (*GenObject).Code C.PyGen_GetCode
type GetSetDescrObject ¶ added in v0.2.0
type GetSetDescrObject struct {
DCommon DescrObject
DGetset *GetSetDef
}
type Getattrfunc ¶
llgo:type C
type Getattrofunc ¶
llgo:type C
type Getbufferproc ¶
type Getbufferproc = func(_llcppg_param1 *Object, _llcppg_param2 *Buffer, _llcppg_param3 c.Int) c.Int
llgo:type C
type HashFuncDef ¶ added in v0.2.0
type HashFuncDef struct {
Hash func(_llcppg_param1 unsafe.Pointer, _llcppg_param2 SsizeT) HashT
Name *c.Char
HashBits c.Int
SeedBits c.Int
}
hash function definition
llgo:type C
func HashGetFuncDef ¶ added in v0.2.0
func HashGetFuncDef() *HashFuncDef
type HeapTypeObject ¶ added in v0.2.0
type HeapTypeObject = X_heaptypeobject
The *real* layout of a type object when allocated on the heap
type ImportErrorObject ¶ added in v0.2.0
type InitConfig ¶ added in v0.2.0
type InitConfig struct {
}
func InitConfigCreate ¶ added in v0.2.0
func InitConfigCreate() *InitConfig
func (*InitConfig) AddModule ¶ added in v0.2.0
llgo:link (*InitConfig).AddModule C.PyInitConfig_AddModule
func (*InitConfig) Error ¶ added in v0.2.0
func (self *InitConfig) Error(err_msg **c.Char) c.Int
llgo:link (*InitConfig).Error C.PyInitConfig_GetError
func (*InitConfig) ExitCode ¶ added in v0.2.0
func (self *InitConfig) ExitCode(exitcode *c.Int) c.Int
llgo:link (*InitConfig).ExitCode C.PyInitConfig_GetExitCode
func (*InitConfig) Free ¶ added in v0.2.0
func (self *InitConfig) Free()
llgo:link (*InitConfig).Free C.PyInitConfig_Free
func (*InitConfig) HasOption ¶ added in v0.2.0
func (self *InitConfig) HasOption(name *c.Char) c.Int
llgo:link (*InitConfig).HasOption C.PyInitConfig_HasOption
func (*InitConfig) SetStrList ¶ added in v0.2.0
llgo:link (*InitConfig).SetStrList C.PyInitConfig_SetStrList
type InstanceMethodObject ¶ added in v0.2.0
func NewInstanceMethod ¶ added in v0.2.3
func NewInstanceMethod(_llcppg_param1 *Object) *InstanceMethodObject
func (*InstanceMethodObject) Function ¶ added in v0.2.3
func (self *InstanceMethodObject) Function() *Object
llgo:link (*InstanceMethodObject).Function C.PyInstanceMethod_Function
type InterpreterConfig ¶ added in v0.2.0
type InterpreterState ¶ added in v0.2.0
type InterpreterState = X_is
func InterpreterStateGet ¶ added in v0.2.0
func InterpreterStateGet() *InterpreterState
New in 3.9 Get the current interpreter state.
Issue a fatal error if there no current Python thread state or no current interpreter. It cannot return NULL.
The caller must hold the GIL.
func InterpreterStateHead ¶ added in v0.2.0
func InterpreterStateHead() *InterpreterState
func InterpreterStateMain ¶ added in v0.2.0
func InterpreterStateMain() *InterpreterState
Routines for advanced debuggers, requested by David Beazley. Don't use unless you know what you are doing!
func InterpreterStateNew ¶ added in v0.2.0
func InterpreterStateNew() *InterpreterState
func (*InterpreterState) Clear ¶ added in v0.2.0
func (self *InterpreterState) Clear()
llgo:link (*InterpreterState).Clear C.PyInterpreterState_Clear
func (*InterpreterState) Delete ¶ added in v0.2.0
func (self *InterpreterState) Delete()
llgo:link (*InterpreterState).Delete C.PyInterpreterState_Delete
func (*InterpreterState) Dict ¶ added in v0.2.0
func (self *InterpreterState) Dict() *Object
New in 3.8
llgo:link (*InterpreterState).Dict C.PyInterpreterState_GetDict
func (*InterpreterState) ID ¶ added in v0.2.0
func (self *InterpreterState) ID() c.Int64T
New in 3.7
llgo:link (*InterpreterState).ID C.PyInterpreterState_GetID
func (*InterpreterState) Next ¶ added in v0.2.0
func (self *InterpreterState) Next() *InterpreterState
llgo:link (*InterpreterState).Next C.PyInterpreterState_Next
func (*InterpreterState) ThreadHead ¶ added in v0.2.0
func (self *InterpreterState) ThreadHead() *ThreadState
llgo:link (*InterpreterState).ThreadHead C.PyInterpreterState_ThreadHead
type ListObject ¶ added in v0.2.0
func NewList ¶ added in v0.2.3
func NewList(size SsizeT) *ListObject
func (*ListObject) Append ¶ added in v0.2.3
func (self *ListObject) Append(_llcppg_param2 *Object) c.Int
llgo:link (*ListObject).Append C.PyList_Append
func (*ListObject) AsTuple ¶ added in v0.2.3
func (self *ListObject) AsTuple() *Object
llgo:link (*ListObject).AsTuple C.PyList_AsTuple
func (*ListObject) Clear ¶ added in v0.2.3
func (self *ListObject) Clear() c.Int
llgo:link (*ListObject).Clear C.PyList_Clear
func (*ListObject) Extend ¶ added in v0.2.3
func (self *ListObject) Extend(iterable *Object) c.Int
llgo:link (*ListObject).Extend C.PyList_Extend
func (*ListObject) Insert ¶ added in v0.2.3
func (self *ListObject) Insert(_llcppg_param2 SsizeT, _llcppg_param3 *Object) c.Int
llgo:link (*ListObject).Insert C.PyList_Insert
func (*ListObject) Item ¶ added in v0.2.3
func (self *ListObject) Item(_llcppg_param2 SsizeT) *Object
llgo:link (*ListObject).Item C.PyList_GetItem
func (*ListObject) ItemRef ¶ added in v0.2.3
func (self *ListObject) ItemRef(_llcppg_param2 SsizeT) *Object
llgo:link (*ListObject).ItemRef C.PyList_GetItemRef
func (*ListObject) Reverse ¶ added in v0.2.3
func (self *ListObject) Reverse() c.Int
llgo:link (*ListObject).Reverse C.PyList_Reverse
func (*ListObject) SetItem ¶ added in v0.2.3
func (self *ListObject) SetItem(_llcppg_param2 SsizeT, _llcppg_param3 *Object) c.Int
llgo:link (*ListObject).SetItem C.PyList_SetItem
func (*ListObject) SetSlice ¶ added in v0.2.3
func (self *ListObject) SetSlice(_llcppg_param2 SsizeT, _llcppg_param3 SsizeT, _llcppg_param4 *Object) c.Int
llgo:link (*ListObject).SetSlice C.PyList_SetSlice
func (*ListObject) Size ¶ added in v0.2.3
func (self *ListObject) Size() SsizeT
llgo:link (*ListObject).Size C.PyList_Size
func (*ListObject) Slice ¶ added in v0.2.3
func (self *ListObject) Slice(_llcppg_param2 SsizeT, _llcppg_param3 SsizeT) *Object
llgo:link (*ListObject).Slice C.PyList_GetSlice
func (*ListObject) Sort ¶ added in v0.2.3
func (self *ListObject) Sort() c.Int
llgo:link (*ListObject).Sort C.PyList_Sort
type LockStatus ¶ added in v0.2.0
Return status codes for Python lock acquisition. Chosen for maximum backwards compatibility, ie failure -> 0, success -> 1.
const ( LOCK_FAILURE LockStatus = 0 LOCK_ACQUIRED LockStatus = 1 LOCK_INTR LockStatus = 2 )
func ThreadAcquireLockTimed ¶ added in v0.2.3
func ThreadAcquireLockTimed(_llcppg_param1 ThreadTypeLock, microseconds c.LongLong, intr_flag c.Int) LockStatus
If microseconds == 0, the call is non-blocking: it returns immediately even when the lock can't be acquired. If microseconds > 0, the call waits up to the specified duration. If microseconds < 0, the call waits until success (or abnormal failure)
If *microseconds* is greater than PY_TIMEOUT_MAX, clamp the timeout to PY_TIMEOUT_MAX microseconds.
If intr_flag is true and the acquire is interrupted by a signal, then the call will return PY_LOCK_INTR. The caller may reattempt to acquire the lock.
type LongExport ¶ added in v0.2.0
type LongExport struct {
Value c.Int64T
Negative c.Uint8T
Ndigits SsizeT
Digits unsafe.Pointer
X_reserved UintptrT
}
func (*LongExport) Free ¶ added in v0.3.0
func (self *LongExport) Free()
llgo:link (*LongExport).Free C.PyLong_FreeExport
type LongLayout ¶ added in v0.2.0
type LongLayout struct {
BitsPerDigit c.Uint8T
DigitSize c.Uint8T
DigitsOrder c.Int8T
DigitEndianness c.Int8T
}
--- Import/Export API --------------------------------------------------
func LongGetNativeLayout ¶ added in v0.2.0
func LongGetNativeLayout() *LongLayout
type LongObject ¶ added in v0.2.0
type LongObject = X_longobject
var X_FalseStruct LongObject
Don't use these directly
var X_TrueStruct LongObject
func LongFromDouble ¶ added in v0.2.0
func LongFromDouble(_llcppg_param1 c.Double) *LongObject
func LongFromInt32 ¶ added in v0.2.0
func LongFromInt32(value c.Int32T) *LongObject
func LongFromInt64 ¶ added in v0.2.0
func LongFromInt64(value c.Int64T) *LongObject
func LongFromLong ¶ added in v0.2.0
func LongFromLong(_llcppg_param1 c.Long) *LongObject
func LongFromLongLong ¶ added in v0.2.0
func LongFromLongLong(_llcppg_param1 c.LongLong) *LongObject
func LongFromNativeBytes ¶ added in v0.2.0
PyLong_FromNativeBytes: Create an int value from a native integer n_bytes is the number of bytes to read from the buffer. Passing 0 will always produce the zero int. PyLong_FromUnsignedNativeBytes always produces a non-negative int. flags is the same as for PyLong_AsNativeBytes, but only supports selecting the endianness or forcing an unsigned buffer.
Returns the int object, or NULL with an exception set.
func LongFromSizeT ¶ added in v0.2.0
func LongFromSizeT(_llcppg_param1 c.SizeT) *LongObject
func LongFromSsizeT ¶ added in v0.2.0
func LongFromSsizeT(_llcppg_param1 SsizeT) *LongObject
func LongFromString ¶ added in v0.2.0
func LongFromUInt32 ¶ added in v0.2.0
func LongFromUInt32(value c.Uint32T) *LongObject
func LongFromUInt64 ¶ added in v0.2.0
func LongFromUInt64(value c.Uint64T) *LongObject
func LongFromUnicodeObject ¶ added in v0.2.4
func LongFromUnicodeObject(u *Object, base c.Int) *LongObject
func LongFromUnsignedLong ¶ added in v0.2.0
func LongFromUnsignedLong(_llcppg_param1 c.Ulong) *LongObject
func LongFromUnsignedLongLong ¶ added in v0.2.0
func LongFromUnsignedLongLong(_llcppg_param1 c.UlongLong) *LongObject
func LongFromUnsignedNativeBytes ¶ added in v0.2.0
func LongFromVoidPtr ¶ added in v0.2.0
func LongFromVoidPtr(_llcppg_param1 unsafe.Pointer) *LongObject
func X_LongFromDigits ¶ added in v0.2.0
func X_LongFromDigits(negative c.Int, digit_count SsizeT, digits *Digit) *LongObject
func X_LongNew ¶ added in v0.2.0
func X_LongNew(_llcppg_param1 SsizeT) *LongObject
func (*LongObject) As ¶ added in v0.2.3
func (self *LongObject) As() c.Long
llgo:link (*LongObject).As C.PyLong_AsLong
func (*LongObject) AsDouble ¶ added in v0.2.3
func (self *LongObject) AsDouble() c.Double
llgo:link (*LongObject).AsDouble C.PyLong_AsDouble
func (*LongObject) AsInt ¶ added in v0.2.3
func (self *LongObject) AsInt() c.Int
llgo:link (*LongObject).AsInt C.PyLong_AsInt
func (*LongObject) AsInt32 ¶ added in v0.2.3
func (self *LongObject) AsInt32(value *c.Int32T) c.Int
llgo:link (*LongObject).AsInt32 C.PyLong_AsInt32
func (*LongObject) AsInt64 ¶ added in v0.2.3
func (self *LongObject) AsInt64(value *c.Int64T) c.Int
llgo:link (*LongObject).AsInt64 C.PyLong_AsInt64
func (*LongObject) AsLong ¶ added in v0.2.3
func (self *LongObject) AsLong() c.LongLong
llgo:link (*LongObject).AsLong C.PyLong_AsLongLong
func (*LongObject) AsLongAndOverflow ¶ added in v0.2.3
func (self *LongObject) AsLongAndOverflow(_llcppg_param2 *c.Int) c.Long
llgo:link (*LongObject).AsLongAndOverflow C.PyLong_AsLongAndOverflow
func (*LongObject) AsLongLongAndOverflow ¶ added in v0.2.3
func (self *LongObject) AsLongLongAndOverflow(_llcppg_param2 *c.Int) c.LongLong
llgo:link (*LongObject).AsLongLongAndOverflow C.PyLong_AsLongLongAndOverflow
func (*LongObject) AsNativeBytes ¶ added in v0.2.3
PyLong_AsNativeBytes: Copy the integer value to a native variable. buffer points to the first byte of the variable. n_bytes is the number of bytes available in the buffer. Pass 0 to request the required size for the value. flags is a bitfield of the following flags: 1 - little endian 2 - native endian 4 - unsigned destination (e.g. don't reject copying 255 into one byte) 8 - raise an exception for negative inputs 16 - call __index__ on non-int types If flags is -1 (all bits set), native endian is used, value truncation behaves most like C (allows negative inputs and allow MSB set), and non-int objects will raise a TypeError. Big endian mode will write the most significant byte into the address directly referenced by buffer; little endian will write the least significant byte into that address.
If an exception is raised, returns a negative value. Otherwise, returns the number of bytes that are required to store the value. To check that the full value is represented, ensure that the return value is equal or less than n_bytes. All n_bytes are guaranteed to be written (unless an exception occurs), and so ignoring a positive return value is the equivalent of a downcast in C. In cases where the full value could not be represented, the returned value may be larger than necessary - this function is not an accurate way to calculate the bit length of an integer object.
llgo:link (*LongObject).AsNativeBytes C.PyLong_AsNativeBytes
func (*LongObject) AsSizeT ¶ added in v0.2.3
func (self *LongObject) AsSizeT() c.SizeT
llgo:link (*LongObject).AsSizeT C.PyLong_AsSize_t
func (*LongObject) AsSsizeT ¶ added in v0.2.3
func (self *LongObject) AsSsizeT() SsizeT
llgo:link (*LongObject).AsSsizeT C.PyLong_AsSsize_t
func (*LongObject) AsUInt32 ¶ added in v0.2.3
func (self *LongObject) AsUInt32(value *c.Uint32T) c.Int
llgo:link (*LongObject).AsUInt32 C.PyLong_AsUInt32
func (*LongObject) AsUInt64 ¶ added in v0.2.3
func (self *LongObject) AsUInt64(value *c.Uint64T) c.Int
llgo:link (*LongObject).AsUInt64 C.PyLong_AsUInt64
func (*LongObject) AsUnsigned ¶ added in v0.2.3
func (self *LongObject) AsUnsigned() c.Ulong
llgo:link (*LongObject).AsUnsigned C.PyLong_AsUnsignedLong
func (*LongObject) AsUnsignedLong ¶ added in v0.2.3
func (self *LongObject) AsUnsignedLong() c.UlongLong
llgo:link (*LongObject).AsUnsignedLong C.PyLong_AsUnsignedLongLong
func (*LongObject) AsUnsignedLongLongMask ¶ added in v0.2.3
func (self *LongObject) AsUnsignedLongLongMask() c.UlongLong
llgo:link (*LongObject).AsUnsignedLongLongMask C.PyLong_AsUnsignedLongLongMask
func (*LongObject) AsUnsignedLongMask ¶ added in v0.2.3
func (self *LongObject) AsUnsignedLongMask() c.Ulong
llgo:link (*LongObject).AsUnsignedLongMask C.PyLong_AsUnsignedLongMask
func (*LongObject) AsVoidPtr ¶ added in v0.2.3
func (self *LongObject) AsVoidPtr() unsafe.Pointer
llgo:link (*LongObject).AsVoidPtr C.PyLong_AsVoidPtr
func (*LongObject) Export ¶ added in v0.2.3
func (self *LongObject) Export(export_long *LongExport) c.Int
llgo:link (*LongObject).Export C.PyLong_Export
func (*LongObject) IsNegative ¶ added in v0.2.3
func (self *LongObject) IsNegative() c.Int
PyLong_IsNegative. Check if the integer object is negative.
- On success, return 1 if *obj is negative, and 0 otherwise. - On failure, set an exception, and return -1.
llgo:link (*LongObject).IsNegative C.PyLong_IsNegative
func (*LongObject) IsPositive ¶ added in v0.2.3
func (self *LongObject) IsPositive() c.Int
PyLong_IsPositive. Check if the integer object is positive.
- On success, return 1 if *obj is positive, and 0 otherwise. - On failure, set an exception, and return -1.
llgo:link (*LongObject).IsPositive C.PyLong_IsPositive
func (*LongObject) IsZero ¶ added in v0.2.3
func (self *LongObject) IsZero() c.Int
PyLong_IsZero. Check if the integer object is zero.
- On success, return 1 if *obj is zero, and 0 if it is non-zero. - On failure, set an exception, and return -1.
llgo:link (*LongObject).IsZero C.PyLong_IsZero
func (*LongObject) Sign ¶ added in v0.2.3
func (self *LongObject) Sign(sign *c.Int) c.Int
PyLong_GetSign. Get the sign of an integer object: 0, -1 or +1 for zero, negative or positive integer, respectively.
- On success, set '*sign' to the integer sign, and return 0. - On failure, set an exception, and return -1.
llgo:link (*LongObject).Sign C.PyLong_GetSign
type LongWriter ¶ added in v0.2.0
type LongWriter struct {
}
func LongWriterCreate ¶ added in v0.2.0
func (*LongWriter) Discard ¶ added in v0.2.0
func (self *LongWriter) Discard()
llgo:link (*LongWriter).Discard C.PyLongWriter_Discard
func (*LongWriter) Finish ¶ added in v0.2.0
func (self *LongWriter) Finish() *Object
llgo:link (*LongWriter).Finish C.PyLongWriter_Finish
type MappingMethods ¶ added in v0.2.0
type MappingMethods struct {
MpLength Lenfunc
MpSubscript Binaryfunc
MpAssSubscript Objobjargproc
}
type MemAllocatorDomain ¶ added in v0.2.0
const ( // PyMem_RawMalloc(), PyMem_RawRealloc() and PyMem_RawFree() PYMEM_DOMAIN_RAW MemAllocatorDomain = 0 // PyMem_Malloc(), PyMem_Realloc() and PyMem_Free() PYMEM_DOMAIN_MEM MemAllocatorDomain = 1 // PyObject_Malloc(), PyObject_Realloc() and PyObject_Free() PYMEM_DOMAIN_OBJ MemAllocatorDomain = 2 )
type MemAllocatorEx ¶ added in v0.2.0
type MemAllocatorEx struct {
Ctx unsafe.Pointer
Malloc func(_llcppg_param1 unsafe.Pointer, _llcppg_param2 c.SizeT) unsafe.Pointer
Calloc func(_llcppg_param1 unsafe.Pointer, _llcppg_param2 c.SizeT, _llcppg_param3 c.SizeT) unsafe.Pointer
Realloc func(_llcppg_param1 unsafe.Pointer, _llcppg_param2 unsafe.Pointer, _llcppg_param3 c.SizeT) unsafe.Pointer
Free func(_llcppg_param1 unsafe.Pointer, _llcppg_param2 unsafe.Pointer)
}
llgo:type C
type MemAllocatorName ¶ added in v0.2.0
const ( PYMEM_ALLOCATOR_NOT_SET MemAllocatorName = 0 PYMEM_ALLOCATOR_DEFAULT MemAllocatorName = 1 PYMEM_ALLOCATOR_DEBUG MemAllocatorName = 2 PYMEM_ALLOCATOR_MALLOC MemAllocatorName = 3 PYMEM_ALLOCATOR_MALLOC_DEBUG MemAllocatorName = 4 PYMEM_ALLOCATOR_PYMALLOC MemAllocatorName = 5 PYMEM_ALLOCATOR_PYMALLOC_DEBUG MemAllocatorName = 6 PYMEM_ALLOCATOR_MIMALLOC MemAllocatorName = 7 PYMEM_ALLOCATOR_MIMALLOC_DEBUG MemAllocatorName = 8 )
type MemberDef ¶ added in v0.2.0
An array of PyMemberDef structures defines the name, type and offset of selected members of a C structure. These can be read by PyMember_GetOne() and set by PyMember_SetOne() (except if their READONLY flag is set). The array must be terminated with an entry whose name pointer is NULL.
type MemberDescrObject ¶ added in v0.2.0
type MemberDescrObject struct {
DCommon DescrObject
DMember *MemberDef
}
type MemoryViewObject ¶ added in v0.2.0
type MemoryViewObject struct {
ObBase VarObject
Mbuf *X_ManagedBufferObject
Hash HashT
Flags c.Int
Exports SsizeT
View Buffer
Weakreflist *Object
ObArray [1]SsizeT
}
func MemoryViewFromBuffer ¶ added in v0.2.4
func MemoryViewFromBuffer(info *Buffer) *MemoryViewObject
func MemoryViewFromMemory ¶ added in v0.2.0
func (*MemoryViewObject) Contiguous ¶ added in v0.2.3
llgo:link (*MemoryViewObject).Contiguous C.PyMemoryView_GetContiguous
type MethodDescrObject ¶ added in v0.2.0
type MethodDescrObject struct {
DCommon DescrObject
DMethod *MethodDef
Vectorcall Vectorcallfunc
}
type MethodObject ¶ added in v0.2.0
type MethodObject struct {
ObBase Object
ImFunc *Object
ImSelf *Object
ImWeakreflist *Object
Vectorcall Vectorcallfunc
}
func NewMethod ¶ added in v0.2.3
func NewMethod(_llcppg_param1 *Object, _llcppg_param2 *Object) *MethodObject
func (*MethodObject) Function ¶ added in v0.2.3
func (self *MethodObject) Function() *Object
llgo:link (*MethodObject).Function C.PyMethod_Function
func (*MethodObject) Self ¶ added in v0.2.3
func (self *MethodObject) Self() *Object
llgo:link (*MethodObject).Self C.PyMethod_Self
type ModuleDef ¶ added in v0.2.0
type ModuleDef struct {
MBase ModuleDefBase
MName *c.Char
MDoc *c.Char
MSize SsizeT
MMethods *MethodDef
MSlots *ModuleDefSlot
MTraverse Traverseproc
MClear Inquiry
MFree Freefunc
}
func ModuleGetDef ¶ added in v0.2.3
type ModuleDefBase ¶ added in v0.2.0
llgo:type C
type ModuleDefSlot ¶ added in v0.2.0
New in 3.5
type MonitoringState ¶ added in v0.2.0
type MonitoringState = X_MonitoringState
type Mutex ¶ added in v0.2.0
A mutex that occupies one byte. The lock can be zero initialized to represent the unlocked state.
Typical initialization:
PyMutex m = (PyMutex){0};
Or initialize as global variables:
static PyMutex m;
Typical usage:
PyMutex_Lock(&m); ... PyMutex_Unlock(&m);
The contents of the PyMutex are not part of the public API, but are described to aid in understanding the implementation and debugging. Only the two least significant bits are used. The remaining bits are always zero: 0b00: unlocked 0b01: locked 0b10: unlocked and has parked threads 0b11: locked and has parked threads
func (*Mutex) IsLocked ¶ added in v0.2.0
exported function for checking if the mutex is locked
llgo:link (*Mutex).IsLocked C.PyMutex_IsLocked
type NameErrorObject ¶ added in v0.2.0
type Newfunc ¶
type Newfunc = func(_llcppg_param1 *TypeObject, _llcppg_param2 *Object, _llcppg_param3 *Object) *Object
llgo:type C
type NumberMethods ¶ added in v0.2.0
type NumberMethods struct {
NbAdd Binaryfunc
NbSubtract Binaryfunc
NbMultiply Binaryfunc
NbRemainder Binaryfunc
NbDivmod Binaryfunc
NbPower Ternaryfunc
NbNegative Unaryfunc
NbPositive Unaryfunc
NbAbsolute Unaryfunc
NbBool Inquiry
NbInvert Unaryfunc
NbLshift Binaryfunc
NbRshift Binaryfunc
NbAnd Binaryfunc
NbXor Binaryfunc
NbOr Binaryfunc
NbInt Unaryfunc
NbReserved unsafe.Pointer
NbFloat Unaryfunc
NbInplaceAdd Binaryfunc
NbInplaceSubtract Binaryfunc
NbInplaceMultiply Binaryfunc
NbInplaceRemainder Binaryfunc
NbInplacePower Ternaryfunc
NbInplaceLshift Binaryfunc
NbInplaceRshift Binaryfunc
NbInplaceAnd Binaryfunc
NbInplaceXor Binaryfunc
NbInplaceOr Binaryfunc
NbFloorDivide Binaryfunc
NbTrueDivide Binaryfunc
NbInplaceFloorDivide Binaryfunc
NbInplaceTrueDivide Binaryfunc
NbIndex Unaryfunc
NbMatrixMultiply Binaryfunc
NbInplaceMatrixMultiply Binaryfunc
}
type ODictObject ¶ added in v0.2.0
type ODictObject = X_odictobject
type OSErrorObject ¶ added in v0.2.0
type OSSighandlerT ¶ added in v0.2.0
Signals
llgo:type C
func OSGetsig ¶ added in v0.2.0
func OSGetsig(_llcppg_param1 c.Int) OSSighandlerT
func OSSetsig ¶ added in v0.2.0
func OSSetsig(_llcppg_param1 c.Int, _llcppg_param2 OSSighandlerT) OSSighandlerT
type Object ¶ added in v0.2.0
type Object = X_object
var ExcArithmeticError *Object
var ExcAssertionError *Object
var ExcAttributeError *Object
var ExcBaseException *Object
Predefined exceptions
var ExcBaseExceptionGroup *Object
var ExcBlockingIOError *Object
var ExcBrokenPipeError *Object
var ExcBufferError *Object
var ExcBytesWarning *Object
var ExcChildProcessError *Object
var ExcConnectionAbortedError *Object
var ExcConnectionError *Object
var ExcConnectionRefusedError *Object
var ExcConnectionResetError *Object
var ExcDeprecationWarning *Object
var ExcEOFError *Object
var ExcEncodingWarning *Object
var ExcEnvironmentError *Object
Compatibility aliases
var ExcException *Object
var ExcFileExistsError *Object
var ExcFileNotFoundError *Object
var ExcFloatingPointError *Object
var ExcFutureWarning *Object
var ExcGeneratorExit *Object
var ExcIOError *Object
var ExcImportError *Object
var ExcImportWarning *Object
var ExcIndentationError *Object
var ExcIndexError *Object
var ExcInterruptedError *Object
var ExcIsADirectoryError *Object
var ExcKeyError *Object
var ExcKeyboardInterrupt *Object
var ExcLookupError *Object
var ExcMemoryError *Object
var ExcModuleNotFoundError *Object
var ExcNameError *Object
var ExcNotADirectoryError *Object
var ExcNotImplementedError *Object
var ExcOSError *Object
var ExcOverflowError *Object
var ExcPendingDeprecationWarning *Object
var ExcPermissionError *Object
var ExcProcessLookupError *Object
var ExcPythonFinalizationError *Object
var ExcRecursionError *Object
var ExcReferenceError *Object
var ExcResourceWarning *Object
var ExcRuntimeError *Object
var ExcRuntimeWarning *Object
var ExcStopAsyncIteration *Object
var ExcStopIteration *Object
var ExcSyntaxError *Object
var ExcSyntaxWarning *Object
var ExcSystemError *Object
var ExcSystemExit *Object
var ExcTabError *Object
var ExcTimeoutError *Object
var ExcTypeError *Object
var ExcUnboundLocalError *Object
var ExcUnicodeDecodeError *Object
var ExcUnicodeEncodeError *Object
var ExcUnicodeError *Object
var ExcUnicodeTranslateError *Object
var ExcUnicodeWarning *Object
var ExcUserWarning *Object
var ExcValueError *Object
var ExcWarning *Object
Predefined warning categories
var ExcZeroDivisionError *Object
var X_EllipsisObject Object
Don't use this directly
var X_NoneStruct Object
Don't use this directly
var X_NotImplementedStruct Object
Don't use this directly
func AsyncGenNew ¶ added in v0.2.1
func AsyncGenNew(_llcppg_param1 *FrameObject, name *Object, qualname *Object) *Object
func BoolFromLong ¶ added in v0.2.0
Function to return a bool from a C long
func BuildValue ¶ added in v0.2.0
func BytesDecodeEscape ¶ added in v0.2.0
func CallIterNew ¶ added in v0.2.3
func CapsuleNew ¶ added in v0.2.0
func ClassMethodNew ¶ added in v0.2.3
func CodecBackslashReplaceErrors ¶ added in v0.2.3
replace the unicode encode error with backslash escapes (\x, \u and \U)
func CodecDecode ¶ added in v0.2.3
Generic codec based decoding API.
object is passed through the decoder function found for the given encoding using the error handling method defined by errors. errors may be NULL to use the default method defined for the codec.
Raises a LookupError in case no encoder can be found.
func CodecDecoder ¶ added in v0.2.0
Get a decoder function for the given encoding.
func CodecEncode ¶ added in v0.2.3
Generic codec based encoding API.
object is passed through the encoder function found for the given encoding using the error handling method defined by errors. errors may be NULL to use the default method defined for the codec.
Raises a LookupError in case no encoder can be found.
func CodecEncoder ¶ added in v0.2.0
Get an encoder function for the given encoding.
func CodecIgnoreErrors ¶ added in v0.2.3
ignore the unicode error, skipping the faulty input
func CodecIncrementalDecoder ¶ added in v0.2.0
Get an IncrementalDecoder object function for the given encoding.
func CodecIncrementalEncoder ¶ added in v0.2.0
Get an IncrementalEncoder object for the given encoding.
func CodecLookupError ¶ added in v0.2.0
Lookup the error handling callback function registered under the given name. As a special case NULL can be passed, in which case the error handling callback for "strict" will be returned.
func CodecNameReplaceErrors ¶ added in v0.2.3
replace the unicode encode error with backslash escapes (\N, \x, \u and \U)
func CodecReplaceErrors ¶ added in v0.2.3
replace the unicode encode error with ? or U+FFFD
func CodecStreamReader ¶ added in v0.2.0
Get a StreamReader factory function for the given encoding.
func CodecStreamWriter ¶ added in v0.2.0
Get a StreamWriter factory function for the given encoding.
func CodecStrictErrors ¶ added in v0.2.3
raise exc as an exception
func CodecXMLCharRefReplaceErrors ¶ added in v0.2.3
replace the unicode encode error with XML character references
func CompileString ¶ added in v0.2.0
func CompileStringExFlags ¶ added in v0.2.0
func CompileStringFlags ¶ added in v0.2.0
func CompileStringObject ¶ added in v0.2.0
func ConfigNames ¶ added in v0.2.0
func ConfigNames() *Object
func ContextCopyCurrent ¶ added in v0.2.0
func ContextCopyCurrent() *Object
func ContextNew ¶ added in v0.2.0
func ContextNew() *Object
func CoroNew ¶ added in v0.2.1
func CoroNew(_llcppg_param1 *FrameObject, name *Object, qualname *Object) *Object
func DictProxyNew ¶ added in v0.2.3
func ErrGetHandledException ¶ added in v0.2.0
func ErrGetHandledException() *Object
func ErrGetRaisedException ¶ added in v0.2.0
func ErrGetRaisedException() *Object
func ErrNewException ¶ added in v0.2.0
Function to create a new exception
func ErrNewExceptionWithDoc ¶ added in v0.2.0
func ErrNoMemory ¶ added in v0.2.0
func ErrNoMemory() *Object
func ErrOccurred ¶ added in v0.2.0
func ErrOccurred() *Object
func ErrProgramTextObject ¶ added in v0.2.1
func ErrSetFromErrno ¶ added in v0.2.1
func ErrSetFromErrnoWithFilename ¶ added in v0.2.1
func ErrSetFromErrnoWithFilenameObject ¶ added in v0.2.1
func ErrSetFromErrnoWithFilenameObjects ¶ added in v0.2.1
func ErrSetImportError ¶ added in v0.2.1
func ErrSetImportErrorSubclass ¶ added in v0.2.1
func Err_FormatV ¶ added in v0.2.1
func EvalCodeEx ¶ added in v0.2.1
func EvalFrame ¶ added in v0.2.1
func EvalFrame(_llcppg_param1 *FrameObject) *Object
func EvalFrameEx ¶ added in v0.2.1
func EvalFrameEx(f *FrameObject, exc c.Int) *Object
func EvalGetBuiltins ¶ added in v0.2.0
func EvalGetBuiltins() *Object
func EvalGetFrameBuiltins ¶ added in v0.2.0
func EvalGetFrameBuiltins() *Object
func EvalGetFrameGlobals ¶ added in v0.2.0
func EvalGetFrameGlobals() *Object
func EvalGetFrameLocals ¶ added in v0.2.0
func EvalGetFrameLocals() *Object
func EvalGetGlobals ¶ added in v0.2.0
func EvalGetGlobals() *Object
func EvalGetLocals ¶ added in v0.2.0
func EvalGetLocals() *Object
func ExceptionGetArgs ¶ added in v0.2.3
func ExceptionGetCause ¶ added in v0.2.3
Cause manipulation (PEP 3134)
func ExceptionGetContext ¶ added in v0.2.3
Context manipulation (PEP 3134)
func ExceptionGetTraceback ¶ added in v0.2.3
func FileFromFd ¶ added in v0.2.0
func FileGetLine ¶ added in v0.2.3
func FileNewStdPrinter ¶ added in v0.2.0
The std printer acts as a preliminary sys.stderr until the new io infrastructure is in place.
func FileOpenCode ¶ added in v0.2.0
func FileOpenCodeObject ¶ added in v0.2.3
func FloatGetInfo ¶ added in v0.2.0
func FloatGetInfo() *Object
func FrozenSetNew ¶ added in v0.2.3
func GenNew ¶ added in v0.2.1
func GenNew(_llcppg_param1 *FrameObject) *Object
func GenericAlias ¶ added in v0.2.0
func GetConstant ¶ added in v0.2.0
func GetConstantBorrowed ¶ added in v0.2.0
func ImportAddModule ¶ added in v0.2.0
func ImportAddModuleObject ¶ added in v0.2.0
func ImportAddModuleRef ¶ added in v0.2.0
func ImportExecCodeModule ¶ added in v0.2.0
func ImportExecCodeModuleEx ¶ added in v0.2.0
func ImportExecCodeModuleObject ¶ added in v0.2.0
func ImportExecCodeModuleWithPathnames ¶ added in v0.2.0
func ImportGetImporter ¶ added in v0.2.0
func ImportGetModule ¶ added in v0.2.0
func ImportGetModuleDict ¶ added in v0.2.0
func ImportGetModuleDict() *Object
func ImportImportModule ¶ added in v0.2.0
func ImportImportModuleAttrString ¶ added in v0.2.0
func ImportImportModuleLevel ¶ added in v0.2.0
func ImportImportModuleLevelObject ¶ added in v0.2.0
func ImportImportModuleNoBlock ¶ added in v0.2.0
func IterNext ¶ added in v0.2.3
Takes an iterator object and calls its tp_iternext slot, returning the next value.
If the iterator is exhausted, this returns NULL without setting an exception.
NULL with an exception means an error occurred.
Prefer PyIter_NextItem() instead.
func LongGetInfo ¶ added in v0.2.0
func LongGetInfo() *Object
func MappingGetItemString ¶ added in v0.2.3
Return element of 'o' corresponding to the string 'key' or NULL on failure.
This is the equivalent of the Python expression: o[key].
func MappingItems ¶ added in v0.2.3
On success, return a list of the items in mapping object 'o', where each item is a tuple containing a key-value pair. On failure, return NULL.
func MappingKeys ¶ added in v0.2.3
On success, return a list of the keys in mapping object 'o'. On failure, return NULL.
func MappingValues ¶ added in v0.2.3
On success, return a list of the values in mapping object 'o'. On failure, return NULL.
func MemberGetOne ¶ added in v0.2.0
func ModuleCreate2 ¶ added in v0.2.3
func ModuleFromDefAndSpec2 ¶ added in v0.2.3
New in 3.5
func ModuleGetDict ¶ added in v0.2.3
func ModuleGetFilenameObject ¶ added in v0.2.3
func ModuleGetNameObject ¶ added in v0.2.3
func ModuleNewObject ¶ added in v0.2.3
func NewRef ¶ added in v0.2.0
Create a new strong reference to an object: increment the reference count of the object and return the object.
func NumberAbsolute ¶ added in v0.2.3
Returns the absolute value of 'o', or NULL on failure.
This is the equivalent of the Python expression: abs(o).
func NumberAdd ¶ added in v0.2.3
Returns the result of adding o1 and o2, or NULL on failure.
This is the equivalent of the Python expression: o1 + o2.
func NumberAnd ¶ added in v0.2.3
Returns the result of bitwise and of o1 and o2 on success, or NULL on failure.
This is the equivalent of the Python expression: o1 & o2.
func NumberDivmod ¶ added in v0.2.3
See the built-in function divmod.
Returns NULL on failure.
This is the equivalent of the Python expression: divmod(o1, o2).
func NumberFloat ¶ added in v0.2.3
Returns the object 'o' converted to a float object on success, or NULL on failure.
This is the equivalent of the Python expression: float(o).
func NumberFloorDivide ¶ added in v0.2.3
Returns the result of dividing o1 by o2 giving an integral result, or NULL on failure.
This is the equivalent of the Python expression: o1 // o2.
func NumberInPlaceAdd ¶ added in v0.2.3
Returns the result of adding o2 to o1, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 += o2.
func NumberInPlaceAnd ¶ added in v0.2.3
Returns the result of bitwise and of o1 and o2, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 &= o2.
func NumberInPlaceFloorDivide ¶ added in v0.2.3
Returns the result of dividing o1 by o2 giving an integral result, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 /= o2.
func NumberInPlaceLshift ¶ added in v0.2.3
Returns the result of left shifting o1 by o2, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 <<= o2.
func NumberInPlaceMatrixMultiply ¶ added in v0.2.3
This is the equivalent of the Python expression: o1 @= o2.
func NumberInPlaceMultiply ¶ added in v0.2.3
Returns the result of multiplying o1 by o2, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 *= o2.
func NumberInPlaceOr ¶ added in v0.2.3
Returns the result of bitwise or of o1 and o2, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 |= o2.
func NumberInPlacePower ¶ added in v0.2.3
Returns the result of raising o1 to the power of o2, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 **= o2, or o1 = pow(o1, o2, o3) if o3 is present.
func NumberInPlaceRemainder ¶ added in v0.2.3
Returns the remainder of dividing o1 by o2, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 %= o2.
func NumberInPlaceRshift ¶ added in v0.2.3
Returns the result of right shifting o1 by o2, possibly in-place or NULL on failure.
This is the equivalent of the Python expression: o1 >>= o2.
func NumberInPlaceSubtract ¶ added in v0.2.3
Returns the result of subtracting o2 from o1, possibly in-place or NULL on failure.
This is the equivalent of the Python expression: o1 -= o2.
func NumberInPlaceTrueDivide ¶ added in v0.2.3
Returns the result of dividing o1 by o2 giving a float result, possibly in-place, or null on failure.
This is the equivalent of the Python expression: o1 /= o2.
func NumberInPlaceXor ¶ added in v0.2.3
Returns the bitwise exclusive or of o1 by o2, possibly in-place, or NULL on failure.
This is the equivalent of the Python expression: o1 ^= o2.
func NumberIndex ¶ added in v0.2.3
Returns the object 'o' converted to a Python int, or NULL with an exception raised on failure.
func NumberInvert ¶ added in v0.2.3
Returns the bitwise negation of 'o' on success, or NULL on failure.
This is the equivalent of the Python expression: ~o.
func NumberLong ¶ added in v0.2.3
Returns the object 'o' converted to an integer object on success, or NULL on failure.
This is the equivalent of the Python expression: int(o).
func NumberLshift ¶ added in v0.2.3
Returns the result of left shifting o1 by o2 on success, or NULL on failure.
This is the equivalent of the Python expression: o1 << o2.
func NumberMatrixMultiply ¶ added in v0.2.3
This is the equivalent of the Python expression: o1 @ o2.
func NumberMultiply ¶ added in v0.2.3
Returns the result of multiplying o1 and o2, or NULL on failure.
This is the equivalent of the Python expression: o1 * o2.
func NumberNegative ¶ added in v0.2.3
Returns the negation of o on success, or NULL on failure.
This is the equivalent of the Python expression: -o.
func NumberOr ¶ added in v0.2.3
Returns the result of bitwise or on o1 and o2 on success, or NULL on failure.
This is the equivalent of the Python expression: o1 | o2.
func NumberPositive ¶ added in v0.2.3
Returns the positive of o on success, or NULL on failure.
This is the equivalent of the Python expression: +o.
func NumberPower ¶ added in v0.2.3
See the built-in function pow. Returns NULL on failure.
This is the equivalent of the Python expression: pow(o1, o2, o3), where o3 is optional.
func NumberRemainder ¶ added in v0.2.3
Returns the remainder of dividing o1 by o2, or NULL on failure.
This is the equivalent of the Python expression: o1 % o2.
func NumberRshift ¶ added in v0.2.3
Returns the result of right shifting o1 by o2 on success, or NULL on failure.
This is the equivalent of the Python expression: o1 >> o2.
func NumberSubtract ¶ added in v0.2.3
Returns the result of subtracting o2 from o1, or NULL on failure.
This is the equivalent of the Python expression: o1 - o2.
func NumberToBase ¶ added in v0.2.3
Returns the integer n converted to a string with a base, with a base marker of 0b, 0o or 0x prefixed if applicable.
If n is not an int object, it is converted with PyNumber_Index first.
func NumberTrueDivide ¶ added in v0.2.3
Returns the result of dividing o1 by o2 giving a float result, or NULL on failure.
This is the equivalent of the Python expression: o1 / o2.
func NumberXor ¶ added in v0.2.3
Returns the bitwise exclusive or of o1 by o2 on success, or NULL on failure.
This is the equivalent of the Python expression: o1 ^ o2.
func PickleBufferFromObject ¶ added in v0.2.3
Create a PickleBuffer redirecting to the given buffer-enabled object
func RunFileExFlags ¶ added in v0.2.0
func RunFileFlags ¶ added in v0.2.0
func RunString ¶ added in v0.2.0
A function flavor is also exported by libpython. It is required when libpython is accessed directly rather than using header files which defines macros below. On Windows, for example, PyAPI_FUNC() uses dllexport to export functions in pythonXX.dll.
func RunStringFlags ¶ added in v0.2.0
func SeqIterNew ¶ added in v0.2.3
func SequenceConcat ¶ added in v0.2.3
Return the concatenation of o1 and o2 on success, and NULL on failure.
This is the equivalent of the Python expression: o1 + o2.
func SequenceFast ¶ added in v0.2.3
Return the sequence 'o' as a list, unless it's already a tuple or list.
Use PySequence_Fast_GET_ITEM to access the members of this list, and PySequence_Fast_GET_SIZE to get its length.
Returns NULL on failure. If the object does not support iteration, raises a TypeError exception with 'm' as the message text.
func SequenceGetItem ¶ added in v0.2.3
Return the ith element of o, or NULL on failure.
This is the equivalent of the Python expression: o[i].
func SequenceGetSlice ¶ added in v0.2.3
Return the slice of sequence object o between i1 and i2, or NULL on failure.
This is the equivalent of the Python expression: o[i1:i2].
func SequenceInPlaceConcat ¶ added in v0.2.3
Append sequence 'o2' to sequence 'o1', in-place when possible. Return the resulting object, which could be 'o1', or NULL on failure.
This is the equivalent of the Python expression: o1 += o2.
func SequenceInPlaceRepeat ¶ added in v0.2.3
Repeat sequence 'o' by 'count', in-place when possible. Return the resulting object, which could be 'o', or NULL on failure.
This is the equivalent of the Python expression: o1 *= count.
func SequenceList ¶ added in v0.2.3
Returns the sequence 'o' as a list on success, and NULL on failure. This is equivalent to the Python expression: list(o)
func SequenceRepeat ¶ added in v0.2.3
Return the result of repeating sequence object 'o' 'count' times, or NULL on failure.
This is the equivalent of the Python expression: o * count.
func SequenceTuple ¶ added in v0.2.3
Returns the sequence 'o' as a tuple on success, and NULL on failure.
This is equivalent to the Python expression: tuple(o).
func StateFindModule ¶ added in v0.2.3
func StaticMethodNew ¶ added in v0.2.3
func StructSequenceNew ¶ added in v0.2.3
func StructSequenceNew(type_ *TypeObject) *Object
func SysGetObject ¶ added in v0.2.0
func SysGetXOptions ¶ added in v0.2.0
func SysGetXOptions() *Object
func ThreadGetInfo ¶ added in v0.2.0
func ThreadGetInfo() *Object
func ThreadStateGetDict ¶ added in v0.2.0
func ThreadStateGetDict() *Object
func UnicodeDecode ¶ added in v0.2.0
Create a Unicode object by decoding the encoded string s of the given size.
func UnicodeDecodeCharmap ¶ added in v0.2.0
--- Character Map Codecs -----------------------------------------------
This codec uses mappings to encode and decode characters.
Decoding mappings must map byte ordinals (integers in the range from 0 to 255) to Unicode strings, integers (which are then interpreted as Unicode ordinals) or None. Unmapped data bytes (ones which cause a LookupError) as well as mapped to None, 0xFFFE or '\ufffe' are treated as "undefined mapping" and cause an error.
Encoding mappings must map Unicode ordinal integers to bytes objects, integers in the range from 0 to 255 or None. Unmapped character ordinals (ones which cause a LookupError) as well as mapped to None are treated as "undefined mapping" and cause an error.
func UnicodeDecodeErrorCreate ¶ added in v0.2.0
func UnicodeDecodeErrorCreate(encoding *c.Char, object *c.Char, length SsizeT, start SsizeT, end SsizeT, reason *c.Char) *Object
create a UnicodeDecodeError object
func UnicodeDecodeErrorGetEncoding ¶ added in v0.2.3
func UnicodeDecodeErrorGetObject ¶ added in v0.2.3
func UnicodeDecodeErrorGetReason ¶ added in v0.2.3
func UnicodeDecodeFSDefault ¶ added in v0.2.0
Decode a null-terminated string from the Python filesystem encoding and error handler.
If the string length is known, use PyUnicode_DecodeFSDefaultAndSize().
func UnicodeDecodeFSDefaultAndSize ¶ added in v0.2.0
Decode a string from the Python filesystem encoding and error handler.
func UnicodeDecodeLatin1 ¶ added in v0.2.0
--- Latin-1 Codecs -----------------------------------------------------
Note: Latin-1 corresponds to the first 256 Unicode ordinals.
func UnicodeDecodeLocale ¶ added in v0.2.0
Similar to PyUnicode_DecodeLocaleAndSize(), but compute the string length using strlen().
func UnicodeDecodeLocaleAndSize ¶ added in v0.2.0
Decode a string from the current locale encoding. The decoder is strict if surrogateescape* is equal to zero, otherwise it uses the 'surrogateescape' error handler (PEP 383) to escape undecodable bytes. If a byte sequence can be decoded as a surrogate character and *surrogateescape* is not equal to zero, the byte sequence is escaped using the 'surrogateescape' error handler instead of being decoded. *str* must end with a null character but cannot contain embedded null characters.
func UnicodeDecodeRawUnicodeEscape ¶ added in v0.2.0
--- Raw-Unicode-Escape Codecs ------------------------------------------
func UnicodeDecodeUTF7 ¶ added in v0.2.0
--- UTF-7 Codecs -------------------------------------------------------
func UnicodeDecodeUTF7Stateful ¶ added in v0.2.0
func UnicodeDecodeUTF8 ¶ added in v0.2.0
--- UTF-8 Codecs -------------------------------------------------------
func UnicodeDecodeUTF8Stateful ¶ added in v0.2.0
func UnicodeDecodeUTF16 ¶ added in v0.2.0
Decodes length bytes from a UTF-16 encoded buffer string and returns the corresponding Unicode object.
errors (if non-NULL) defines the error handling. It defaults to "strict".
If byteorder is non-NULL, the decoder starts decoding using the given byte order:
byteorder == -1: little endian byteorder == 0: native order byteorder == 1: big endian
In native mode, the first two bytes of the stream are checked for a BOM mark. If found, the BOM mark is analysed, the byte order adjusted and the BOM skipped. In the other modes, no BOM mark interpretation is done. After completion, *byteorder is set to the current byte order at the end of input data.
If byteorder is NULL, the codec starts in native order mode.
func UnicodeDecodeUTF16Stateful ¶ added in v0.2.0
func UnicodeDecodeUTF32 ¶ added in v0.2.0
Decodes length bytes from a UTF-32 encoded buffer string and returns the corresponding Unicode object.
errors (if non-NULL) defines the error handling. It defaults to "strict".
If byteorder is non-NULL, the decoder starts decoding using the given byte order:
byteorder == -1: little endian byteorder == 0: native order byteorder == 1: big endian
In native mode, the first four bytes of the stream are checked for a BOM mark. If found, the BOM mark is analysed, the byte order adjusted and the BOM skipped. In the other modes, no BOM mark interpretation is done. After completion, *byteorder is set to the current byte order at the end of input data.
If byteorder is NULL, the codec starts in native order mode.
func UnicodeDecodeUTF32Stateful ¶ added in v0.2.0
func UnicodeDecodeUnicodeEscape ¶ added in v0.2.0
--- Unicode-Escape Codecs ----------------------------------------------
func UnicodeEncodeErrorGetEncoding ¶ added in v0.2.3
get the encoding attribute
func UnicodeEncodeErrorGetObject ¶ added in v0.2.3
get the object attribute
func UnicodeEncodeErrorGetReason ¶ added in v0.2.3
get the value of the reason attribute
func UnicodeInternFromString ¶ added in v0.2.0
func UnicodeTranslateErrorGetObject ¶ added in v0.2.3
func UnicodeTranslateErrorGetReason ¶ added in v0.2.3
func Unicode_DecodeASCII ¶ added in v0.2.0
--- ASCII Codecs -------------------------------------------------------
Only 7-bit ASCII data is expected. All other codes generate errors.
func UnstableExcPrepReraiseStar ¶ added in v0.2.3
In exceptions.c
func UnstableInterpreterFrameGetCode ¶ added in v0.2.3
func UnstableInterpreterFrameGetCode(frame *X_InterpreterFrame) *Object
Returns the code object of the frame (strong reference). Does not raise an exception.
func Unstable_Object_GC_NewWithExtraData ¶ added in v0.2.3
func Unstable_Object_GC_NewWithExtraData(_llcppg_param1 *TypeObject, _llcppg_param2 c.SizeT) *Object
func VaBuildValue ¶ added in v0.2.0
func VectorcallCall ¶ added in v0.2.3
Call "callable" (which must support vectorcall) with positional arguments "tuple" and keyword arguments "dict". "dict" may also be NULL
func WeakrefGetObject ¶ added in v0.2.3
func WeakrefNewProxy ¶ added in v0.2.3
func WeakrefNewRef ¶ added in v0.2.3
func WrapperNew ¶ added in v0.2.3
func X_CodeConstantKey ¶ added in v0.2.0
Create a comparable key used to compare constants taking in account the object type. It is used to make sure types are not coerced (e.g., float and complex) _and_ to distinguish 0.0 from -0.0 e.g. on IEEE platforms
Return (type(obj), obj, ...): a tuple with variable size (at least 2 items) depending on the type and the value. The type is the first item to not compare bytes and str which can raise a BytesWarning exception.
func X_DictGetItemKnownHash ¶ added in v0.2.0
func X_DictGetItemStringWithError ¶ added in v0.2.0
PyDict_GetItemStringRef() can be used instead
func X_DictNewPresized ¶ added in v0.2.0
func X_EvalFrameDefault ¶ added in v0.2.1
func X_EvalFrameDefault(tstate *ThreadState, f *X_InterpreterFrame, exc c.Int) *Object
func X_LongFromByteArray ¶ added in v0.2.0
_PyLong_FromByteArray: View the n unsigned bytes as a binary integer in base 256, and return a Python int with the same numeric value. If n is 0, the integer is 0. Else: If little_endian is 1/true, bytes[n-1] is the MSB and bytes[0] the LSB; else (little_endian is 0/false) bytes[0] is the MSB and bytes[n-1] the LSB. If is_signed is 0/false, view the bytes as a non-negative integer. If is_signed is 1/true, view the bytes as a 2's-complement integer, non-negative if bit 0x80 of the MSB is clear, negative if set. Error returns: + Return NULL with the appropriate exception set if there's not enough memory to create the Python int.
func X_Long_GCD ¶ added in v0.2.0
For use by the gcd function in mathmodule.c
func X_ObjectCallMethodId ¶ added in v0.2.0
func X_ObjectCallMethodId(obj *Object, name *X_Identifier, format *c.Char, __llgo_va_list ...any) *Object
Like PyObject_CallMethod(), but expect a _Py_Identifier* as the method name.
func X_ObjectFunctionStr ¶ added in v0.2.0
func X_ObjectGenericGetAttrWithDict ¶ added in v0.2.0
func X_ObjectGenericGetAttrWithDict(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object, _llcppg_param4 c.Int) *Object
Same as PyObject_Generic{Get,Set}Attr, but passing the attributes dict as the last parameter.
func X_ObjectGetAttrId ¶ added in v0.2.0
func X_ObjectGetAttrId(_llcppg_param1 *Object, _llcppg_param2 *X_Identifier) *Object
func X_ObjectGetDictPtr ¶ added in v0.2.0
func X_ObjectNew ¶ added in v0.2.0
func X_ObjectNew(_llcppg_param1 *TypeObject) *Object
func X_Object_GC_New ¶ added in v0.2.0
func X_Object_GC_New(_llcppg_param1 *TypeObject) *Object
func X_SliceFromIndices ¶ added in v0.2.0
func X_StackAsDict ¶ added in v0.2.0
Convert keyword arguments from the FASTCALL (stack: C array, kwnames: tuple) format to a Python dictionary ("kwargs" dict).
The type of kwnames keys is not checked. The final function getting arguments is responsible to check if all keys are strings, for example using PyArg_ParseTupleAndKeywords() or PyArg_ValidateKeywordArguments().
Duplicate keys are merged using the last value. If duplicate keys must raise an exception, the caller is responsible to implement an explicit keys on kwnames.
func X_ThreadCurrentFrames ¶ added in v0.2.0
func X_ThreadCurrentFrames() *Object
The implementation of sys._current_frames() Returns a dict mapping thread id to that thread's current frame.
func X_TypeLookup ¶ added in v0.2.0
func X_TypeLookup(_llcppg_param1 *TypeObject, _llcppg_param2 *Object) *Object
func X_TypeLookupRef ¶ added in v0.2.0
func X_TypeLookupRef(_llcppg_param1 *TypeObject, _llcppg_param2 *Object) *Object
func X_UnicodeFromId ¶ added in v0.2.0
func X_UnicodeFromId(_llcppg_param1 *X_Identifier) *Object
Return an interned Unicode object for an Identifier; may fail if there is no memory.
func X_UnicodeWriterFinish ¶ added in v0.2.0
func X_UnicodeWriterFinish(writer *X_UnicodeWriter) *Object
Get the value of the writer as a Unicode string. Clear the buffer of the writer. Raise an exception and return NULL on error.
func (*Object) AIter ¶ added in v0.2.0
Takes an AsyncIterable object and returns an AsyncIterator for it. This is typically a new iterator but if the argument is an AsyncIterator, this returns itself.
llgo:link (*Object).AIter C.PyObject_GetAIter
func (*Object) AsByteArray ¶ added in v0.2.0
func (self *Object) AsByteArray() *ByteArrayObject
Direct API functions
llgo:link (*Object).AsByteArray C.PyByteArray_FromObject
func (*Object) AsBytes ¶ added in v0.2.0
func (self *Object) AsBytes() *BytesObject
llgo:link (*Object).AsBytes C.PyBytes_FromObject
func (*Object) AsFileDescriptor ¶ added in v0.2.0
llgo:link (*Object).AsFileDescriptor C.PyObject_AsFileDescriptor
func (*Object) AsMemoryView ¶ added in v0.2.0
func (self *Object) AsMemoryView() *MemoryViewObject
llgo:link (*Object).AsMemoryView C.PyMemoryView_FromObject
func (*Object) AsUnicode ¶ added in v0.2.0
func (self *Object) AsUnicode() *UnicodeObject
Copy an instance of a Unicode subtype to a new true Unicode object if necessary. If obj is already a true Unicode object (not a subtype), return the reference with *incremented* refcount.
The API returns NULL in case of an error. The caller is responsible for decref'ing the returned objects.
llgo:link (*Object).AsUnicode C.PyUnicode_FromObject
func (*Object) AttrString ¶ added in v0.2.0
llgo:link (*Object).AttrString C.PyObject_GetAttrString
func (*Object) Buffer ¶ added in v0.2.0
This is a C-API version of the getbuffer function call. It checks to make sure object has the required function pointer and issues the call.
Returns -1 and raises an error on failure and returns 0 on success.
llgo:link (*Object).Buffer C.PyObject_GetBuffer
func (*Object) Call ¶ added in v0.2.0
Call a callable Python object 'callable' with arguments given by the tuple 'args' and keywords arguments given by the dictionary 'kwargs'.
'args' must not be NULL, use an empty tuple if no arguments are needed. If no named arguments are needed, 'kwargs' can be NULL.
This is the equivalent of the Python expression: callable(*args, **kwargs).
llgo:link (*Object).Call C.PyObject_Call
func (*Object) CallFinalizer ¶ added in v0.2.0
func (self *Object) CallFinalizer()
llgo:link (*Object).CallFinalizer C.PyObject_CallFinalizer
func (*Object) CallFinalizerFromDealloc ¶ added in v0.2.0
llgo:link (*Object).CallFinalizerFromDealloc C.PyObject_CallFinalizerFromDealloc
func (*Object) CallFunction ¶ added in v0.2.0
Call a callable Python object, callable, with a variable number of C arguments. The C arguments are described using a mkvalue-style format string.
The format may be NULL, indicating that no arguments are provided.
Returns the result of the call on success, or NULL on failure.
This is the equivalent of the Python expression: callable(arg1, arg2, ...).
llgo:link (*Object).CallFunction C.PyObject_CallFunction
func (*Object) CallFunctionObjArgs ¶ added in v0.2.0
Call a callable Python object 'callable' with a variable number of C arguments. The C arguments are provided as PyObject* values, terminated by a NULL.
Returns the result of the call on success, or NULL on failure.
This is the equivalent of the Python expression: callable(arg1, arg2, ...).
llgo:link (*Object).CallFunctionObjArgs C.PyObject_CallFunctionObjArgs
func (*Object) CallMethod ¶ added in v0.2.0
Call the method named 'name' of object 'obj' with a variable number of C arguments. The C arguments are described by a mkvalue format string.
The format can be NULL, indicating that no arguments are provided.
Returns the result of the call on success, or NULL on failure.
This is the equivalent of the Python expression: obj.name(arg1, arg2, ...).
llgo:link (*Object).CallMethod C.PyObject_CallMethod
func (*Object) CallMethodObjArgs ¶ added in v0.2.0
Call the method named 'name' of object 'obj' with a variable number of C arguments. The C arguments are provided as PyObject* values, terminated by NULL.
Returns the result of the call on success, or NULL on failure.
This is the equivalent of the Python expression: obj.name(*args).
llgo:link (*Object).CallMethodObjArgs C.PyObject_CallMethodObjArgs
func (*Object) CallNoArgs ¶ added in v0.2.0
Call a callable Python object without any arguments
llgo:link (*Object).CallNoArgs C.PyObject_CallNoArgs
func (*Object) CallObject ¶ added in v0.2.3
Call a callable Python object 'callable', with arguments given by the tuple 'args'. If no arguments are needed, then 'args' can be NULL.
Returns the result of the call on success, or NULL on failure.
This is the equivalent of the Python expression: callable(*args).
llgo:link (*Object).CallObject C.PyObject_CallObject
func (*Object) CallOneArg ¶ added in v0.2.0
llgo:link (*Object).CallOneArg C.PyObject_CallOneArg
func (*Object) CheckBuffer ¶ added in v0.2.0
Return 1 if the getbuffer function is available, otherwise return 0.
llgo:link (*Object).CheckBuffer C.PyObject_CheckBuffer
func (*Object) ClearManagedDict ¶ added in v0.2.0
func (self *Object) ClearManagedDict()
llgo:link (*Object).ClearManagedDict C.PyObject_ClearManagedDict
func (*Object) ClearWeakRefs ¶ added in v0.2.0
func (self *Object) ClearWeakRefs()
llgo:link (*Object).ClearWeakRefs C.PyObject_ClearWeakRefs
func (*Object) ContextCopy ¶ added in v0.2.0
llgo:link (*Object).ContextCopy C.PyContext_Copy
func (*Object) ContextEnter ¶ added in v0.2.0
llgo:link (*Object).ContextEnter C.PyContext_Enter
func (*Object) ContextExit ¶ added in v0.2.0
llgo:link (*Object).ContextExit C.PyContext_Exit
func (*Object) ContextVarGet ¶ added in v0.2.0
Get a value for the variable.
Returns -1 if an error occurred during lookup.
Returns 0 if value either was or was not found.
If value was found, *value will point to it. If not, it will point to:
- default_value, if not NULL; - the default value of "var", if not NULL; - NULL.
'*value' will be a new ref, if not NULL.
llgo:link (*Object).ContextVarGet C.PyContextVar_Get
func (*Object) ContextVarReset ¶ added in v0.2.0
Reset a variable to its previous value. Returns 0 on success, -1 on error.
llgo:link (*Object).ContextVarReset C.PyContextVar_Reset
func (*Object) ContextVarSet ¶ added in v0.2.0
Set a new value for the variable. Returns NULL if an error occurs.
llgo:link (*Object).ContextVarSet C.PyContextVar_Set
func (*Object) CopyData ¶ added in v0.2.0
Copy len bytes of data from the contiguous chunk of memory pointed to by buf into the buffer exported by obj. Return 0 on success and return -1 and raise a PyBuffer_Error on error (i.e. the object does not have a buffer interface or it is not working).
If fort is 'F', then if the object is multi-dimensional, then the data will be copied into the array in Fortran-style (first dimension varies the fastest). If fort is 'C', then the data will be copied into the array in C-style (last dimension varies the fastest). If fort is 'A', then it does not matter and the copy will be made in whatever way is more efficient.
llgo:link (*Object).CopyData C.PyObject_CopyData
func (*Object) DelAttrString ¶ added in v0.2.0
llgo:link (*Object).DelAttrString C.PyObject_DelAttrString
func (*Object) DelItem ¶ added in v0.2.0
Delete the mapping for the object 'key' from the object 'o'. Returns -1 on failure.
This is the equivalent of the Python statement: del o[key].
llgo:link (*Object).DelItem C.PyObject_DelItem
func (*Object) DelItemString ¶ added in v0.2.0
Remove the mapping for the string 'key' from the object 'o'. Returns -1 on failure.
This is equivalent to the Python statement: del o[key].
llgo:link (*Object).DelItemString C.PyObject_DelItemString
func (*Object) Dir ¶ added in v0.2.0
PyObject_Dir(obj) acts like Python builtins.dir(obj), returning a list of strings. PyObject_Dir(NULL) is like builtins.dir(), returning the names of the current locals. In this case, if there are no current locals, NULL is returned, and PyErr_Occurred() is false.
llgo:link (*Object).Dir C.PyObject_Dir
func (*Object) Format ¶ added in v0.2.0
Takes an arbitrary object and returns the result of calling obj.__format__(format_spec).
llgo:link (*Object).Format C.PyObject_Format
func (*Object) GC_IsFinalized ¶ added in v0.2.0
llgo:link (*Object).GC_IsFinalized C.PyObject_GC_IsFinalized
func (*Object) GC_IsTracked ¶ added in v0.2.0
llgo:link (*Object).GC_IsTracked C.PyObject_GC_IsTracked
func (*Object) GET_WEAKREFS_LISTPTR ¶ added in v0.2.0
llgo:link (*Object).GET_WEAKREFS_LISTPTR C.PyObject_GET_WEAKREFS_LISTPTR
func (*Object) GenericGetAttr ¶ added in v0.2.0
llgo:link (*Object).GenericGetAttr C.PyObject_GenericGetAttr
func (*Object) GenericGetDict ¶ added in v0.2.0
llgo:link (*Object).GenericGetDict C.PyObject_GenericGetDict
func (*Object) GenericHash ¶ added in v0.2.0
llgo:link (*Object).GenericHash C.PyObject_GenericHash
func (*Object) GenericSetAttr ¶ added in v0.2.0
llgo:link (*Object).GenericSetAttr C.PyObject_GenericSetAttr
func (*Object) GenericSetDict ¶ added in v0.2.0
llgo:link (*Object).GenericSetDict C.PyObject_GenericSetDict
func (*Object) HasAttrString ¶ added in v0.2.0
llgo:link (*Object).HasAttrString C.PyObject_HasAttrString
func (*Object) HasAttrStringWithError ¶ added in v0.2.0
llgo:link (*Object).HasAttrStringWithError C.PyObject_HasAttrStringWithError
func (*Object) HasAttrWithError ¶ added in v0.2.0
llgo:link (*Object).HasAttrWithError C.PyObject_HasAttrWithError
func (*Object) HashNotImplemented ¶ added in v0.2.0
llgo:link (*Object).HashNotImplemented C.PyObject_HashNotImplemented
func (*Object) IS_GC ¶ added in v0.2.0
Test if an object implements the garbage collector protocol
llgo:link (*Object).IS_GC C.PyObject_IS_GC
func (*Object) ImportFrozenModuleObject ¶ added in v0.3.0
llgo:link (*Object).ImportFrozenModuleObject C.PyImport_ImportFrozenModuleObject
func (*Object) ImportImportModuleAttr ¶ added in v0.3.0
llgo:link (*Object).ImportImportModuleAttr C.PyImport_ImportModuleAttr
func (*Object) ImportReloadModule ¶ added in v0.3.0
llgo:link (*Object).ImportReloadModule C.PyImport_ReloadModule
func (*Object) Init ¶ added in v0.2.0
func (self *Object) Init(_llcppg_param2 *TypeObject) *Object
Functions
llgo:link (*Object).Init C.PyObject_Init
func (*Object) IsInstance ¶ added in v0.2.0
isinstance(object, typeorclass)
llgo:link (*Object).IsInstance C.PyObject_IsInstance
func (*Object) IsSubclass ¶ added in v0.2.0
issubclass(object, typeorclass)
llgo:link (*Object).IsSubclass C.PyObject_IsSubclass
func (*Object) Item ¶ added in v0.2.0
Return element of 'o' corresponding to the object 'key'. Return NULL on failure.
This is the equivalent of the Python expression: o[key]
llgo:link (*Object).Item C.PyObject_GetItem
func (*Object) Iter ¶ added in v0.2.0
Takes an object and returns an iterator for it. This is typically a new iterator but if the argument is an iterator, this returns itself.
llgo:link (*Object).Iter C.PyObject_GetIter
func (*Object) LengthHint ¶ added in v0.2.0
Guess the size of object 'o' using len(o) or o.__length_hint__(). If neither of those return a non-negative value, then return the default value. If one of the calls fails, this function returns -1.
llgo:link (*Object).LengthHint C.PyObject_LengthHint
func (*Object) ODictDelItem ¶ added in v0.2.3
llgo:link (*Object).ODictDelItem C.PyODict_DelItem
func (*Object) ODictSetItem ¶ added in v0.2.3
llgo:link (*Object).ODictSetItem C.PyODict_SetItem
func (*Object) OptionalAttr ¶ added in v0.2.0
llgo:link (*Object).OptionalAttr C.PyObject_GetOptionalAttr
func (*Object) OptionalAttrString ¶ added in v0.2.0
llgo:link (*Object).OptionalAttrString C.PyObject_GetOptionalAttrString
func (*Object) Repr ¶ added in v0.2.0
Generic operations on objects
llgo:link (*Object).Repr C.PyObject_Repr
func (*Object) RichCompare ¶ added in v0.2.0
llgo:link (*Object).RichCompare C.PyObject_RichCompare
func (*Object) RichCompareBool ¶ added in v0.2.0
llgo:link (*Object).RichCompareBool C.PyObject_RichCompareBool
func (*Object) SetAttrString ¶ added in v0.2.0
llgo:link (*Object).SetAttrString C.PyObject_SetAttrString
func (*Object) SetItem ¶ added in v0.2.0
Map the object 'key' to the value 'v' into 'o'.
Raise an exception and return -1 on failure; return 0 on success.
This is the equivalent of the Python statement: o[key]=v.
llgo:link (*Object).SetItem C.PyObject_SetItem
func (*Object) Size ¶ added in v0.2.0
Return the size of object 'o'. If the object 'o' provides both sequence and mapping protocols, the sequence size is returned.
On error, -1 is returned.
This is the equivalent to the Python expression: len(o)
llgo:link (*Object).Size C.PyObject_Size
func (*Object) Type ¶ added in v0.2.0
Get the type of an object.
On success, returns a type object corresponding to the object type of object 'o'. On failure, returns NULL.
This is equivalent to the Python expression: type(o)
llgo:link (*Object).Type C.PyObject_Type
func (*Object) TypeData ¶ added in v0.2.0
func (self *Object) TypeData(cls *TypeObject) unsafe.Pointer
llgo:link (*Object).TypeData C.PyObject_GetTypeData
func (*Object) Vectorcall ¶ added in v0.2.0
Perform a PEP 590-style vector call on 'callable'
llgo:link (*Object).Vectorcall C.PyObject_Vectorcall
func (*Object) VectorcallDict ¶ added in v0.2.0
Same as PyObject_Vectorcall except that keyword arguments are passed as dict, which may be NULL if there are no keyword arguments.
llgo:link (*Object).VectorcallDict C.PyObject_VectorcallDict
func (*Object) VectorcallMethod ¶ added in v0.2.0
Call the method 'name' on args[0] with arguments in args[1..nargsf-1].
llgo:link (*Object).VectorcallMethod C.PyObject_VectorcallMethod
type ObjectArenaAllocator ¶ added in v0.2.0
type ObjectArenaAllocator struct {
Ctx unsafe.Pointer
Alloc func(_llcppg_param1 unsafe.Pointer, _llcppg_param2 c.SizeT) unsafe.Pointer
Free func(_llcppg_param1 unsafe.Pointer, _llcppg_param2 unsafe.Pointer, _llcppg_param3 c.SizeT)
}
This example code implements an object constructor with a custom allocator, where PyObject_New is inlined, and shows the important distinction between two steps (at least): 1) the actual allocation of the object storage; 2) the initialization of the Python specific fields in this storage with PyObject_{Init, InitVar}.
PyObject * YourObject_New(...) { PyObject *op;
op = (PyObject *) Your_Allocator(_PyObject_SIZE(YourTypeStruct)); if (op == NULL) { return PyErr_NoMemory(); }
PyObject_Init(op, &YourTypeStruct);
op->ob_field = value; ... return op; }
Note that in C++, the use of the new operator usually implies that the 1st step is performed automatically for you, so in a C++ class constructor you would start directly with PyObject_Init/InitVar.
llgo:type C
type Objobjargproc ¶
type Objobjargproc = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) c.Int
llgo:type C
type Objobjproc ¶
llgo:type C
type OpenCodeHookFunction ¶ added in v0.2.0
llgo:type C
type PY_UNICODE_TYPE ¶
Py_UNICODE was the native Unicode storage format (code unit) used by Python and represents a single Unicode element in the Unicode type. With PEP 393, Py_UNICODE is deprecated and replaced with a typedef to wchar_t.
type PerfMapState ¶
type PerfMapState struct {
PerfMap *c.FILE
MapLock ThreadTypeLock
}
Trampoline API
type PreConfig ¶ added in v0.2.0
type PreConfig struct {
X_configInit c.Int
ParseArgv c.Int
Isolated c.Int
UseEnvironment c.Int
ConfigureLocale c.Int
CoerceCLocale c.Int
CoerceCLocaleWarn c.Int
Utf8Mode c.Int
DevMode c.Int
Allocator c.Int
}
--- PyPreConfig -----------------------------------------------
func (*PreConfig) InitIsolatedConfig ¶ added in v0.2.0
func (self *PreConfig) InitIsolatedConfig()
llgo:link (*PreConfig).InitIsolatedConfig C.PyPreConfig_InitIsolatedConfig
func (*PreConfig) InitPythonConfig ¶ added in v0.2.0
func (self *PreConfig) InitPythonConfig()
llgo:link (*PreConfig).InitPythonConfig C.PyPreConfig_InitPythonConfig
type Printfunc ¶
type Printfunc = SsizeT
Allow printfunc in the tp_vectorcall_offset slot for backwards-compatibility
type RefTracer ¶ added in v0.2.0
type RefTracer = func(_llcppg_param1 *Object, _llcppg_param2 RefTracerEvent, _llcppg_param3 unsafe.Pointer) c.Int
llgo:type C
func RefTracerGetTracer ¶ added in v0.2.0
type RefTracerEvent ¶ added in v0.2.0
const ( RefTracer_CREATE RefTracerEvent = 0 RefTracer_DESTROY RefTracerEvent = 1 )
type Releasebufferproc ¶
llgo:type C
type Richcmpfunc ¶
type Richcmpfunc = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 c.Int) *Object
llgo:type C
type SendResult ¶ added in v0.2.0
Result of calling PyIter_Send
const ( PYGEN_RETURN SendResult = 0 PYGEN_ERROR SendResult = -1 PYGEN_NEXT SendResult = 1 )
func IterSend ¶ added in v0.2.3
func IterSend(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 **Object) SendResult
Takes generator, coroutine or iterator object and sends the value into it. Returns: - PYGEN_RETURN (0) if generator has returned. 'result' parameter is filled with return value - PYGEN_ERROR (-1) if exception was raised. 'result' parameter is NULL - PYGEN_NEXT (1) if generator has yielded. 'result' parameter is filled with yielded value.
type Sendfunc ¶
type Sendfunc = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 **Object) SendResult
llgo:type C
type SequenceMethods ¶ added in v0.2.0
type SequenceMethods struct {
SqLength Lenfunc
SqConcat Binaryfunc
SqRepeat Ssizeargfunc
SqItem Ssizeargfunc
WasSqSlice unsafe.Pointer
SqAssItem Ssizeobjargproc
WasSqAssSlice unsafe.Pointer
SqContains Objobjproc
SqInplaceConcat Binaryfunc
SqInplaceRepeat Ssizeargfunc
}
type SetObject ¶ added in v0.2.0
type SetObject struct {
ObBase Object
Fill SsizeT
Used SsizeT
Mask SsizeT
Table *Setentry
Hash HashT
Finger SsizeT
Smalltable [8]Setentry
Weakreflist *Object
}
The SetObject data structure is shared by set and frozenset objects.
Invariant for sets: - hash is -1
Invariants for frozensets: - data is immutable. - hash is the hash of the frozenset or -1 if not computed yet.
type Setattrfunc ¶
type Setattrfunc = func(_llcppg_param1 *Object, _llcppg_param2 *c.Char, _llcppg_param3 *Object) c.Int
llgo:type C
type Setattrofunc ¶
type Setattrofunc = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) c.Int
llgo:type C
type Setter ¶
type Setter = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 unsafe.Pointer) c.Int
llgo:type C
type SliceObject ¶ added in v0.2.0
func NewSlice ¶ added in v0.2.3
func NewSlice(start *Object, stop *Object, step *Object) *SliceObject
type SsizeCleanT ¶ added in v0.2.0
type SsizeCleanT = SsizeT
Now PY_SSIZE_T_CLEAN is mandatory. This is just for backward compatibility.
type SsizeT ¶ added in v0.2.0
func BufferSizeFromFormat ¶ added in v0.2.0
Return the implied itemsize of the data-format area from a struct-style description.
func MappingLength ¶ added in v0.2.3
func MappingSize ¶ added in v0.2.3
Returns the number of keys in mapping object 'o' on success, and -1 on failure. This is equivalent to the Python expression: len(o).
func NumberAsSsizeT ¶ added in v0.2.3
Returns the object 'o' converted to Py_ssize_t by going through PyNumber_Index() first.
If an overflow error occurs while converting the int to Py_ssize_t, then the second argument 'exc' is the error-type to return. If it is NULL, then the overflow error is cleared and the value is clipped.
func SequenceCount ¶ added in v0.2.3
Return the number of occurrences on value on 'o', that is, return the number of keys for which o[key] == value.
On failure, return -1. This is equivalent to the Python expression: o.count(value).
func SequenceIndex ¶ added in v0.2.3
Return the first index for which o[i] == value. On error, return -1.
This is equivalent to the Python expression: o.index(value).
func SequenceLength ¶ added in v0.2.3
func SequenceSize ¶ added in v0.2.3
Return the size of sequence object o, or -1 on failure.
func SliceAdjustIndices ¶ added in v0.2.0
func UnstableEvalRequestCodeExtraIndex ¶ added in v0.2.0
func UnstableLongCompactValue ¶ added in v0.2.3
func UnstableLongCompactValue(op *LongObject) SsizeT
func Vectorcall_NARGS ¶ added in v0.2.0
Given a vectorcall nargsf argument, return the actual number of arguments. (For use outside the limited API, this is re-defined as a static inline function in cpython/abstract.h)
type Ssizeargfunc ¶
llgo:type C
type Ssizeobjargproc ¶
type Ssizeobjargproc = func(_llcppg_param1 *Object, _llcppg_param2 SsizeT, _llcppg_param3 *Object) c.Int
llgo:type C
type Ssizessizeargfunc ¶
type Ssizessizeargfunc = func(_llcppg_param1 *Object, _llcppg_param2 SsizeT, _llcppg_param3 SsizeT) *Object
llgo:type C
type Ssizessizeobjargproc ¶
type Ssizessizeobjargproc = func(_llcppg_param1 *Object, _llcppg_param2 SsizeT, _llcppg_param3 SsizeT, _llcppg_param4 *Object) c.Int
llgo:type C
type Status ¶ added in v0.2.0
--- PyStatus -----------------------------------------------
func InitializeFromConfig ¶ added in v0.2.0
Initialization and finalization
func NewInterpreterFromConfig ¶ added in v0.2.0
func NewInterpreterFromConfig(tstate_p **ThreadState, config *InterpreterConfig) Status
func PreInitialize ¶ added in v0.2.0
PEP 432 Multi-phase initialization API (Private while provisional!)
func PreInitializeFromArgs ¶ added in v0.2.0
func PreInitializeFromBytesArgs ¶ added in v0.2.0
func StatusError ¶ added in v0.2.0
func StatusExit ¶ added in v0.2.0
func StatusNoMemory ¶ added in v0.2.0
func StatusNoMemory() Status
type StopIterationObject ¶ added in v0.2.0
type StructSequence ¶ added in v0.2.0
type StructSequence = TupleObject
func (*StructSequence) StructSequenceGetItem ¶ added in v0.3.0
func (self *StructSequence) StructSequenceGetItem(_llcppg_param2 SsizeT) *Object
llgo:link (*StructSequence).StructSequenceGetItem C.PyStructSequence_GetItem
func (*StructSequence) StructSequenceSetItem ¶ added in v0.3.0
func (self *StructSequence) StructSequenceSetItem(_llcppg_param2 SsizeT, _llcppg_param3 *Object)
llgo:link (*StructSequence).StructSequenceSetItem C.PyStructSequence_SetItem
type StructSequenceDesc ¶ added in v0.2.0
type StructSequenceDesc struct {
Name *c.Char
Doc *c.Char
Fields *StructSequenceField
NInSequence c.Int
}
func (*StructSequenceDesc) StructSequenceNewType ¶ added in v0.2.0
func (self *StructSequenceDesc) StructSequenceNewType() *TypeObject
llgo:link (*StructSequenceDesc).StructSequenceNewType C.PyStructSequence_NewType
type StructSequenceField ¶ added in v0.2.0
type Stwodigits ¶
type SyntaxErrorObject ¶ added in v0.2.0
type SyntaxErrorObject struct {
ObBase Object
Dict *Object
Args *Object
Notes *Object
Traceback *Object
Context *Object
Cause *Object
SuppressContext c.Char
Msg *Object
Filename *Object
Lineno *Object
Offset *Object
EndLineno *Object
EndOffset *Object
Text *Object
PrintFileAndLine *Object
Metadata *Object
}
type SystemExitObject ¶ added in v0.2.0
type Ternaryfunc ¶
type Ternaryfunc = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 *Object) *Object
llgo:type C
type ThreadState ¶ added in v0.2.0
type ThreadState = X_ts
func EvalSaveThread ¶ added in v0.2.0
func EvalSaveThread() *ThreadState
Interface for threads.
A module that plans to do a blocking system call (or something else that lasts a long time and doesn't touch Python data) can allow other threads to run as follows:
...preparations here... Py_BEGIN_ALLOW_THREADS ...blocking system call here... Py_END_ALLOW_THREADS ...interpret result here...
The Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS pair expands to a {}-surrounded block. To leave the block in the middle (e.g., with return), you must insert a line containing Py_BLOCK_THREADS before the return, e.g.
if (...premature_exit...) { Py_BLOCK_THREADS PyErr_SetFromErrno(PyExc_OSError); return NULL; }
An alternative is:
Py_BLOCK_THREADS if (...premature_exit...) { PyErr_SetFromErrno(PyExc_OSError); return NULL; } Py_UNBLOCK_THREADS
For convenience, that the value of 'errno' is restored across Py_END_ALLOW_THREADS and Py_BLOCK_THREADS.
WARNING: NEVER NEST CALLS TO Py_BEGIN_ALLOW_THREADS AND Py_END_ALLOW_THREADS!!!
Note that not yet all candidates have been converted to use this mechanism!
func GILStateGetThisThreadState ¶ added in v0.2.0
func GILStateGetThisThreadState() *ThreadState
Helper/diagnostic function - get the current thread state for this thread. May return NULL if no GILState API has been used on the current thread. Note that the main thread always has such a thread-state, even if no auto-thread-state call has been made on the main thread.
func ThreadStateGet ¶ added in v0.2.0
func ThreadStateGet() *ThreadState
Get the current thread state.
When the current thread state is NULL, this issues a fatal error (so that the caller needn't check for NULL).
The caller must hold the GIL.
See also PyThreadState_GetUnchecked() and _PyThreadState_GET().
func ThreadStateGetUnchecked ¶ added in v0.2.0
func ThreadStateGetUnchecked() *ThreadState
Similar to PyThreadState_Get(), but don't issue a fatal error if it is NULL.
func ThreadStateNew ¶ added in v0.2.3
func ThreadStateNew(_llcppg_param1 *InterpreterState) *ThreadState
func (*ThreadState) Clear ¶ added in v0.2.0
func (self *ThreadState) Clear()
llgo:link (*ThreadState).Clear C.PyThreadState_Clear
func (*ThreadState) Delete ¶ added in v0.2.0
func (self *ThreadState) Delete()
llgo:link (*ThreadState).Delete C.PyThreadState_Delete
func (*ThreadState) EnterTracing ¶ added in v0.2.0
func (self *ThreadState) EnterTracing()
Disable tracing and profiling.
llgo:link (*ThreadState).EnterTracing C.PyThreadState_EnterTracing
func (*ThreadState) Frame ¶ added in v0.2.0
func (self *ThreadState) Frame() *FrameObject
llgo:link (*ThreadState).Frame C.PyThreadState_GetFrame
func (*ThreadState) ID ¶ added in v0.2.0
func (self *ThreadState) ID() c.Uint64T
llgo:link (*ThreadState).ID C.PyThreadState_GetID
func (*ThreadState) Interpreter ¶ added in v0.2.0
func (self *ThreadState) Interpreter() *InterpreterState
New in 3.9
llgo:link (*ThreadState).Interpreter C.PyThreadState_GetInterpreter
func (*ThreadState) LeaveTracing ¶ added in v0.2.0
func (self *ThreadState) LeaveTracing()
Reset tracing and profiling: enable them if a trace function or a profile function is set, otherwise disable them.
llgo:link (*ThreadState).LeaveTracing C.PyThreadState_LeaveTracing
func (*ThreadState) Swap ¶ added in v0.2.0
func (self *ThreadState) Swap() *ThreadState
llgo:link (*ThreadState).Swap C.PyThreadState_Swap
func (*ThreadState) ThreadStateNext ¶ added in v0.2.0
func (self *ThreadState) ThreadStateNext() *ThreadState
llgo:link (*ThreadState).ThreadStateNext C.PyThreadState_Next
type ThreadTypeLock ¶ added in v0.2.0
type ThreadTypeLock uintptr
func ThreadAllocateLock ¶ added in v0.2.0
func ThreadAllocateLock() ThreadTypeLock
type TracebackObject ¶ added in v0.2.0
type TracebackObject = X_traceback
type Tracefunc ¶ added in v0.2.0
type Tracefunc = func(_llcppg_param1 *Object, _llcppg_param2 *FrameObject, _llcppg_param3 c.Int, _llcppg_param4 *Object) c.Int
Py_tracefunc return -1 when raising an exception, or 0 for success.
llgo:type C
type Traverseproc ¶
type Traverseproc = func(_llcppg_param1 *Object, _llcppg_param2 Visitproc, _llcppg_param3 unsafe.Pointer) c.Int
llgo:type C
type TssT ¶ added in v0.2.0
type TssT = X_tssT
New in 3.7 Thread Specific Storage (TSS) API
func ThreadTssAlloc ¶ added in v0.2.0
func ThreadTssAlloc() *TssT
func (*TssT) Delete ¶ added in v0.3.0
func (self *TssT) Delete()
llgo:link (*TssT).Delete C.PyThread_tss_delete
func (*TssT) Free ¶ added in v0.3.0
func (self *TssT) Free()
llgo:link (*TssT).Free C.PyThread_tss_free
type TupleObject ¶ added in v0.2.0
func NewTuple ¶ added in v0.2.3
func NewTuple(size SsizeT) *TupleObject
func (*TupleObject) Item ¶ added in v0.2.3
func (self *TupleObject) Item(_llcppg_param2 SsizeT) *Object
llgo:link (*TupleObject).Item C.PyTuple_GetItem
func (*TupleObject) SetItem ¶ added in v0.2.3
func (self *TupleObject) SetItem(_llcppg_param2 SsizeT, _llcppg_param3 *Object) c.Int
llgo:link (*TupleObject).SetItem C.PyTuple_SetItem
func (*TupleObject) Size ¶ added in v0.2.3
func (self *TupleObject) Size() SsizeT
llgo:link (*TupleObject).Size C.PyTuple_Size
type TypeObject ¶ added in v0.2.0
type TypeObject = X_typeobject
var AsyncGenType TypeObject
var BaseObjectType TypeObject
built-in 'object'
var BoolType TypeObject
var ByteArrayIterType TypeObject
var ByteArrayType TypeObject
Type object
var BytesIterType TypeObject
var BytesType TypeObject
Type PyBytesObject represents a byte string. An extra zero byte is reserved at the end to ensure it is zero-terminated, but a size is present so strings with null bytes in them can be represented. This is an immutable object type.
There are functions to create new bytes objects, to test an object for bytes-ness, and to get the byte string value. The latter function returns a null pointer if the object is not of the proper type. There is a variant that takes an explicit size as well as a variant that assumes a zero-terminated string. Note that none of the functions should be applied to NULL pointer.
var CFunctionType TypeObject
This is about the type 'builtin_function_or_method', not Python methods in user-defined classes. See classobject.h for the latter.
var CMethodType TypeObject
var CallIterType TypeObject
var CapsuleType TypeObject
var CellType TypeObject
var ClassMethodDescrType TypeObject
var ClassMethodType TypeObject
The classmethod and staticmethod types lives here, too
var CodeType TypeObject
var ComplexType TypeObject
Complex object interface
var ContextTokenType TypeObject
var ContextType TypeObject
var ContextVarType TypeObject
var CoroType TypeObject
var DictItemsType TypeObject
var DictIterItemType TypeObject
var DictIterKeyType TypeObject
Dictionary (key, value, items) iterators
var DictIterValueType TypeObject
var DictKeysType TypeObject
Dictionary (keys, values, items) views
var DictProxyType TypeObject
var DictRevIterItemType TypeObject
var DictRevIterKeyType TypeObject
var DictRevIterValueType TypeObject
var DictType TypeObject
The distribution includes a separate file, Objects/dictnotes.txt, describing explorations into dictionary design and optimization. It covers typical dictionary use patterns, the parameters for tuning dictionaries, and several ideas for possible optimizations.
var DictValuesType TypeObject
var EllipsisType TypeObject
var EnumType TypeObject
var FilterType TypeObject
var FloatType TypeObject
var FrameLocalsProxyType TypeObject
var FrameType TypeObject
var FrozenSetType TypeObject
var FunctionType TypeObject
var GenType TypeObject
var GenericAliasType TypeObject
var GetSetDescrType TypeObject
var InstanceMethodType TypeObject
var ListIterType TypeObject
var ListRevIterType TypeObject
var ListType TypeObject
var LongRangeIterType TypeObject
var LongType TypeObject
var MapType TypeObject
var MemberDescrType TypeObject
var MemoryViewType TypeObject
var MethodDescrType TypeObject
var MethodType TypeObject
var ModuleDefType TypeObject
var ModuleType TypeObject
var ODictItemsType TypeObject
var ODictIterType TypeObject
var ODictKeysType TypeObject
var ODictType TypeObject
var ODictValuesType TypeObject
var PickleBufferType TypeObject
var PropertyType TypeObject
var RangeIterType TypeObject
var RangeType TypeObject
A range object represents an integer range. This is an immutable object; a range cannot change its value after creation.
Range objects behave like the corresponding tuple objects except that they are represented by a start, stop, and step datamembers.
var ReversedType TypeObject
var SeqIterType TypeObject
var SetIterType TypeObject
var SetType TypeObject
var SliceType TypeObject
var StaticMethodType TypeObject
var StdPrinterType TypeObject
var SuperType TypeObject
built-in 'super'
var TraceBackType TypeObject
Reveal traceback type so we can typecheck traceback objects
var TupleIterType TypeObject
var TupleType TypeObject
Another generally useful object type is a tuple of object pointers. For Python, this is an immutable type. C code can change the tuple items (but not their number), and even use tuples as general-purpose arrays of object references, but in general only brand new tuples should be mutated, not ones that might already have been exposed to Python code.
** WARNING *** PyTuple_SetItem does not increment the new item's reference count, but does decrement the reference count of the item it replaces, if not nil. It does *decrement* the reference count if it is *not* inserted in the tuple. Similarly, PyTuple_GetItem does not increment the returned item's reference count.
var TypeType TypeObject
built-in 'type'
var UnicodeIterType TypeObject
var UnicodeType TypeObject
var WrapperDescrType TypeObject
var X_AsyncGenASendType TypeObject
var X_WeakrefCallableProxyType TypeObject
var X_WeakrefProxyType TypeObject
var X_WeakrefRefType TypeObject
var ZipType TypeObject
func TYPE ¶ added in v0.2.0
func TYPE(ob *Object) *TypeObject
Py_TYPE() implementation for the stable ABI
func TypeFromMetaclass ¶ added in v0.2.4
func TypeFromMetaclass(_llcppg_param1 *TypeObject, _llcppg_param2 *Object, _llcppg_param3 *TypeSpec, _llcppg_param4 *Object) *TypeObject
func TypeFromModuleAndSpec ¶ added in v0.2.4
func TypeFromModuleAndSpec(_llcppg_param1 *Object, _llcppg_param2 *TypeSpec, _llcppg_param3 *Object) *TypeObject
func TypeFromSpec ¶ added in v0.2.4
func TypeFromSpec(_llcppg_param1 *TypeSpec) *TypeObject
func TypeFromSpecWithBases ¶ added in v0.2.4
func TypeFromSpecWithBases(_llcppg_param1 *TypeSpec, _llcppg_param2 *Object) *TypeObject
func (*TypeObject) BaseByToken ¶ added in v0.2.3
func (self *TypeObject) BaseByToken(_llcppg_param2 unsafe.Pointer, _llcppg_param3 **TypeObject) c.Int
llgo:link (*TypeObject).BaseByToken C.PyType_GetBaseByToken
func (*TypeObject) DataSize ¶ added in v0.2.3
func (self *TypeObject) DataSize() SsizeT
llgo:link (*TypeObject).DataSize C.PyType_GetTypeDataSize
func (*TypeObject) DescrNewClassMethod ¶ added in v0.2.3
func (self *TypeObject) DescrNewClassMethod(_llcppg_param2 *MethodDef) *Object
llgo:link (*TypeObject).DescrNewClassMethod C.PyDescr_NewClassMethod
func (*TypeObject) DescrNewGetSet ¶ added in v0.2.3
func (self *TypeObject) DescrNewGetSet(_llcppg_param2 *GetSetDef) *Object
llgo:link (*TypeObject).DescrNewGetSet C.PyDescr_NewGetSet
func (*TypeObject) DescrNewMember ¶ added in v0.2.3
func (self *TypeObject) DescrNewMember(_llcppg_param2 *MemberDef) *Object
llgo:link (*TypeObject).DescrNewMember C.PyDescr_NewMember
func (*TypeObject) DescrNewMethod ¶ added in v0.2.3
func (self *TypeObject) DescrNewMethod(_llcppg_param2 *MethodDef) *Object
llgo:link (*TypeObject).DescrNewMethod C.PyDescr_NewMethod
func (*TypeObject) DescrNewWrapper ¶ added in v0.2.3
func (self *TypeObject) DescrNewWrapper(_llcppg_param2 *Wrapperbase, _llcppg_param3 unsafe.Pointer) *Object
llgo:link (*TypeObject).DescrNewWrapper C.PyDescr_NewWrapper
func (*TypeObject) Dict ¶ added in v0.2.3
func (self *TypeObject) Dict() *Object
llgo:link (*TypeObject).Dict C.PyType_GetDict
func (*TypeObject) Flags ¶ added in v0.2.3
func (self *TypeObject) Flags() c.Ulong
llgo:link (*TypeObject).Flags C.PyType_GetFlags
func (*TypeObject) Freeze ¶ added in v0.2.3
func (self *TypeObject) Freeze() c.Int
llgo:link (*TypeObject).Freeze C.PyType_Freeze
func (*TypeObject) FullyQualifiedName ¶ added in v0.2.3
func (self *TypeObject) FullyQualifiedName() *Object
llgo:link (*TypeObject).FullyQualifiedName C.PyType_GetFullyQualifiedName
func (*TypeObject) GenericAlloc ¶ added in v0.2.3
func (self *TypeObject) GenericAlloc(_llcppg_param2 SsizeT) *Object
llgo:link (*TypeObject).GenericAlloc C.PyType_GenericAlloc
func (*TypeObject) GenericNew ¶ added in v0.2.3
func (self *TypeObject) GenericNew(_llcppg_param2 *Object, _llcppg_param3 *Object) *Object
llgo:link (*TypeObject).GenericNew C.PyType_GenericNew
func (*TypeObject) IsSubtype ¶ added in v0.2.3
func (self *TypeObject) IsSubtype(_llcppg_param2 *TypeObject) c.Int
Generic type check
llgo:link (*TypeObject).IsSubtype C.PyType_IsSubtype
func (*TypeObject) Modified ¶ added in v0.2.3
func (self *TypeObject) Modified()
llgo:link (*TypeObject).Modified C.PyType_Modified
func (*TypeObject) Module ¶ added in v0.2.3
func (self *TypeObject) Module() *Object
llgo:link (*TypeObject).Module C.PyType_GetModule
func (*TypeObject) ModuleByDef ¶ added in v0.2.3
func (self *TypeObject) ModuleByDef(_llcppg_param2 *ModuleDef) *Object
llgo:link (*TypeObject).ModuleByDef C.PyType_GetModuleByDef
func (*TypeObject) ModuleName ¶ added in v0.2.3
func (self *TypeObject) ModuleName() *Object
llgo:link (*TypeObject).ModuleName C.PyType_GetModuleName
func (*TypeObject) ModuleState ¶ added in v0.2.3
func (self *TypeObject) ModuleState() unsafe.Pointer
llgo:link (*TypeObject).ModuleState C.PyType_GetModuleState
func (*TypeObject) Name ¶ added in v0.2.3
func (self *TypeObject) Name() *Object
llgo:link (*TypeObject).Name C.PyType_GetName
func (*TypeObject) QualName ¶ added in v0.2.3
func (self *TypeObject) QualName() *Object
llgo:link (*TypeObject).QualName C.PyType_GetQualName
func (*TypeObject) Ready ¶ added in v0.2.3
func (self *TypeObject) Ready() c.Int
llgo:link (*TypeObject).Ready C.PyType_Ready
func (*TypeObject) Slot ¶ added in v0.2.3
func (self *TypeObject) Slot(_llcppg_param2 c.Int) unsafe.Pointer
llgo:link (*TypeObject).Slot C.PyType_GetSlot
func (*TypeObject) StructSequenceInit ¶ added in v0.3.0
func (self *TypeObject) StructSequenceInit(desc *StructSequenceDesc)
llgo:link (*TypeObject).StructSequenceInit C.PyStructSequence_InitType
func (*TypeObject) StructSequenceInitType2 ¶ added in v0.2.0
func (self *TypeObject) StructSequenceInitType2(desc *StructSequenceDesc) c.Int
llgo:link (*TypeObject).StructSequenceInitType2 C.PyStructSequence_InitType2
func (*TypeObject) Type_SUPPORTS_WEAKREFS ¶ added in v0.2.3
func (self *TypeObject) Type_SUPPORTS_WEAKREFS() c.Int
Test if a type supports weak references
llgo:link (*TypeObject).Type_SUPPORTS_WEAKREFS C.PyType_SUPPORTS_WEAKREFS
type TypeWatchCallback ¶ added in v0.2.0
type TypeWatchCallback = func(_llcppg_param1 *TypeObject) c.Int
llgo:type C
type UCS4 ¶ added in v0.2.0
Py_UCS4 and Py_UCS2 are typedefs for the respective unicode representations.
func X_UnicodeToLowercase ¶ added in v0.2.0
func X_UnicodeToTitlecase ¶ added in v0.2.0
func X_UnicodeToUppercase ¶ added in v0.2.0
type UintptrT ¶ added in v0.2.0
uintptr_t is the C9X name for an unsigned integral type such that a legitimate void* can be cast to uintptr_t and then back to void* again without loss of information. Similarly for intptr_t, wrt a signed integral type.
type Unaryfunc ¶
Type objects contain a string containing the type name (to help somewhat in debugging), the allocation parameters (see PyObject_New() and PyObject_NewVar()), and methods for accessing objects of the type. Methods are optional, a nil pointer meaning that particular kind of access is not available for this type. The Py_DECREF() macro uses the tp_dealloc method without checking for a nil pointer; it should always be implemented except if the implementation can guarantee that the reference count will never reach zero (e.g., for statically allocated type objects).
NB: the methods for certain type groups are now contained in separate method blocks.
llgo:type C
type UnicodeErrorObject ¶ added in v0.2.0
type UnicodeKind ¶ added in v0.2.0
const ( // Return values of the PyUnicode_KIND() function: Unicode_1BYTE_KIND UnicodeKind = 1 // Return values of the PyUnicode_KIND() function: Unicode_2BYTE_KIND UnicodeKind = 2 // Return values of the PyUnicode_KIND() function: Unicode_4BYTE_KIND UnicodeKind = 4 )
type UnicodeObject ¶ added in v0.2.0
type UnicodeObject struct {
X_base CompactUnicodeObject
Data _llcppg_anon_3
}
Object format for Unicode subclasses.
func NewUnicode ¶ added in v0.2.3
func NewUnicode(size SsizeT, maxchar UCS4) *UnicodeObject
With PEP 393, this is the recommended way to allocate a new unicode object. This function will allocate the object and its buffer in a single memory block. Objects created using this function are not resizable.
func UnicodeFromEncodedObject ¶ added in v0.2.4
Decode obj to a Unicode object.
bytes, bytearray and other bytes-like objects are decoded according to the given encoding and error handler. The encoding and error handler can be NULL to have the interface use UTF-8 and "strict".
All other objects (including Unicode objects) raise an exception.
The API returns NULL in case of an error. The caller is responsible for decref'ing the returned objects.
func UnicodeFromFormat ¶ added in v0.2.0
func UnicodeFromFormat(format *c.Char, __llgo_va_list ...any) *UnicodeObject
func UnicodeFromFormatV ¶ added in v0.2.4
func UnicodeFromFormatV(format *c.Char, vargs c.VaList) *UnicodeObject
func UnicodeFromKindAndData ¶ added in v0.2.0
Create a new string from a buffer of Py_UCS1, Py_UCS2 or Py_UCS4 characters. Scan the string to find the maximum character.
func UnicodeFromOrdinal ¶ added in v0.2.0
func UnicodeFromOrdinal(ordinal c.Int) *UnicodeObject
Create a Unicode Object from the given Unicode code point ordinal.
The ordinal must be in range(0x110000). A ValueError is raised in case it is not.
func UnicodeFromString ¶ added in v0.2.0
func UnicodeFromString(u *c.Char) *UnicodeObject
Similar to PyUnicode_FromUnicode(), but u points to null-terminated UTF-8 encoded bytes. The size is determined with strlen().
func UnicodeFromStringAndSize ¶ added in v0.2.0
func UnicodeFromStringAndSize(u *c.Char, size SsizeT) *UnicodeObject
Similar to PyUnicode_FromUnicode(), but u points to UTF-8 encoded bytes
func UnicodeFromWideChar ¶ added in v0.2.0
func UnicodeFromWideChar(w *c.WcharT, size SsizeT) *UnicodeObject
Create a Unicode Object from the wchar_t buffer w of the given size.
The buffer is copied into the new object.
func (*UnicodeObject) AsASCIIString ¶ added in v0.2.3
func (self *UnicodeObject) AsASCIIString() *Object
llgo:link (*UnicodeObject).AsASCIIString C.PyUnicode_AsASCIIString
func (*UnicodeObject) AsCharmapString ¶ added in v0.2.3
func (self *UnicodeObject) AsCharmapString(mapping *Object) *Object
llgo:link (*UnicodeObject).AsCharmapString C.PyUnicode_AsCharmapString
func (*UnicodeObject) AsDecoded ¶ added in v0.2.3
Decode a Unicode object unicode and return the result as Unicode object.
This API is DEPRECATED and will be removed in 3.15. The only supported standard encoding is rot13. Use PyCodec_Decode() to decode with rot13 and non-standard codecs that decode from str to str.
llgo:link (*UnicodeObject).AsDecoded C.PyUnicode_AsDecodedUnicode
func (*UnicodeObject) AsDecodedObject ¶ added in v0.2.3
Decode a Unicode object unicode and return the result as Python object.
This API is DEPRECATED and will be removed in 3.15. The only supported standard encoding is rot13. Use PyCodec_Decode() to decode with rot13 and non-standard codecs that decode from str.
llgo:link (*UnicodeObject).AsDecodedObject C.PyUnicode_AsDecodedObject
func (*UnicodeObject) AsEncoded ¶ added in v0.2.3
Encodes a Unicode object and returns the result as Unicode object.
This API is DEPRECATED and will be removed in 3.15. The only supported standard encodings is rot13. Use PyCodec_Encode() to encode with rot13 and non-standard codecs that encode from str to str.
llgo:link (*UnicodeObject).AsEncoded C.PyUnicode_AsEncodedUnicode
func (*UnicodeObject) AsEncodedObject ¶ added in v0.2.3
Encodes a Unicode object and returns the result as Python object.
This API is DEPRECATED and will be removed in 3.15. It is superseded by PyUnicode_AsEncodedString() since all standard encodings (except rot13) encode str to bytes. Use PyCodec_Encode() for encoding with rot13 and non-standard codecs that encode form str to non-bytes.
llgo:link (*UnicodeObject).AsEncodedObject C.PyUnicode_AsEncodedObject
func (*UnicodeObject) AsEncodedString ¶ added in v0.2.3
Encodes a Unicode object and returns the result as Python string object.
llgo:link (*UnicodeObject).AsEncodedString C.PyUnicode_AsEncodedString
func (*UnicodeObject) AsLatin1String ¶ added in v0.2.3
func (self *UnicodeObject) AsLatin1String() *Object
llgo:link (*UnicodeObject).AsLatin1String C.PyUnicode_AsLatin1String
func (*UnicodeObject) AsRawUnicodeEscapeString ¶ added in v0.2.3
func (self *UnicodeObject) AsRawUnicodeEscapeString() *Object
llgo:link (*UnicodeObject).AsRawUnicodeEscapeString C.PyUnicode_AsRawUnicodeEscapeString
func (*UnicodeObject) AsUCS4 ¶ added in v0.2.3
Copy the string into a UCS4 buffer including the null character if copy_null is set. Return NULL and raise an exception on error. Raise a SystemError if the buffer is smaller than the string. Return buffer on success.
buflen is the length of the buffer in (Py_UCS4) characters.
llgo:link (*UnicodeObject).AsUCS4 C.PyUnicode_AsUCS4
func (*UnicodeObject) AsUCS4Copy ¶ added in v0.2.3
func (self *UnicodeObject) AsUCS4Copy() *UCS4
Copy the string into a UCS4 buffer. A new buffer is allocated using PyMem_Malloc; if this fails, NULL is returned with a memory error exception set.
llgo:link (*UnicodeObject).AsUCS4Copy C.PyUnicode_AsUCS4Copy
func (*UnicodeObject) AsUTF8 ¶ added in v0.2.3
func (self *UnicodeObject) AsUTF8() *c.Char
Returns a pointer to the default encoding (UTF-8) of the Unicode object unicode.
Like PyUnicode_AsUTF8AndSize(), this also caches the UTF-8 representation in the unicodeobject.
_PyUnicode_AsString is a #define for PyUnicode_AsUTF8 to support the previous internal function with the same behaviour.
Use of this API is DEPRECATED since no size information can be extracted from the returned data.
llgo:link (*UnicodeObject).AsUTF8 C.PyUnicode_AsUTF8
func (*UnicodeObject) AsUTF8AndSize ¶ added in v0.2.3
func (self *UnicodeObject) AsUTF8AndSize(size *SsizeT) *c.Char
llgo:link (*UnicodeObject).AsUTF8AndSize C.PyUnicode_AsUTF8AndSize
func (*UnicodeObject) AsUTF8String ¶ added in v0.2.3
func (self *UnicodeObject) AsUTF8String() *Object
llgo:link (*UnicodeObject).AsUTF8String C.PyUnicode_AsUTF8String
func (*UnicodeObject) AsUTF16String ¶ added in v0.2.3
func (self *UnicodeObject) AsUTF16String() *Object
Returns a Python string using the UTF-16 encoding in native byte order. The string always starts with a BOM mark.
llgo:link (*UnicodeObject).AsUTF16String C.PyUnicode_AsUTF16String
func (*UnicodeObject) AsUTF32String ¶ added in v0.2.3
func (self *UnicodeObject) AsUTF32String() *Object
Returns a Python string using the UTF-32 encoding in native byte order. The string always starts with a BOM mark.
llgo:link (*UnicodeObject).AsUTF32String C.PyUnicode_AsUTF32String
func (*UnicodeObject) AsUnicodeEscapeString ¶ added in v0.2.3
func (self *UnicodeObject) AsUnicodeEscapeString() *Object
llgo:link (*UnicodeObject).AsUnicodeEscapeString C.PyUnicode_AsUnicodeEscapeString
func (*UnicodeObject) AsWideChar ¶ added in v0.2.3
func (self *UnicodeObject) AsWideChar(w *c.WcharT, size SsizeT) SsizeT
Copies the Unicode Object contents into the wchar_t buffer w. At most size wchar_t characters are copied.
Note that the resulting wchar_t string may or may not be 0-terminated. It is the responsibility of the caller to make sure that the wchar_t string is 0-terminated in case this is required by the application.
Returns the number of wchar_t characters copied (excluding a possibly trailing 0-termination character) or -1 in case of an error.
llgo:link (*UnicodeObject).AsWideChar C.PyUnicode_AsWideChar
func (*UnicodeObject) AsWideCharString ¶ added in v0.2.3
func (self *UnicodeObject) AsWideCharString(size *SsizeT) *c.WcharT
Convert the Unicode object to a wide character string. The output string always ends with a nul character. If size is not NULL, write the number of wide characters (excluding the null character) into *size.
Returns a buffer allocated by PyMem_Malloc() (use PyMem_Free() to free it) on success. On error, returns NULL, *size is undefined and raises a MemoryError.
llgo:link (*UnicodeObject).AsWideCharString C.PyUnicode_AsWideCharString
func (*UnicodeObject) BuildEncodingMap ¶ added in v0.2.3
func (self *UnicodeObject) BuildEncodingMap() *Object
Build an encoding map.
llgo:link (*UnicodeObject).BuildEncodingMap C.PyUnicode_BuildEncodingMap
func (*UnicodeObject) Compare ¶ added in v0.2.3
func (self *UnicodeObject) Compare(right *Object) c.Int
Compare two strings and return -1, 0, 1 for less than, equal, greater than resp. Raise an exception and return -1 on error.
llgo:link (*UnicodeObject).Compare C.PyUnicode_Compare
func (*UnicodeObject) CompareWithASCIIString ¶ added in v0.2.3
func (self *UnicodeObject) CompareWithASCIIString(right *c.Char) c.Int
Compare a Unicode object with C string and return -1, 0, 1 for less than, equal, and greater than, respectively. It is best to pass only ASCII-encoded strings, but the function interprets the input string as ISO-8859-1 if it contains non-ASCII characters. This function does not raise exceptions.
llgo:link (*UnicodeObject).CompareWithASCIIString C.PyUnicode_CompareWithASCIIString
func (*UnicodeObject) Concat ¶ added in v0.2.3
func (self *UnicodeObject) Concat(right *Object) *Object
Concat two strings giving a new Unicode string.
llgo:link (*UnicodeObject).Concat C.PyUnicode_Concat
func (*UnicodeObject) Contains ¶ added in v0.2.3
func (self *UnicodeObject) Contains(element *Object) c.Int
Checks whether element is contained in container and return 1/0 accordingly.
element has to coerce to a one element Unicode string. -1 is returned in case of an error.
llgo:link (*UnicodeObject).Contains C.PyUnicode_Contains
func (*UnicodeObject) CopyCharacters ¶ added in v0.2.3
func (self *UnicodeObject) CopyCharacters(to_start SsizeT, from *Object, from_start SsizeT, how_many SsizeT) SsizeT
Copy character from one unicode object into another, this function performs character conversion when necessary and falls back to memcpy() if possible.
Fail if to is too small (smaller than *how_many* or smaller than len(from)-from_start), or if kind(from[from_start:from_start+how_many]) > kind(to), or if *to* has more than 1 reference.
Return the number of written character, or return -1 and raise an exception on error.
Pseudo-code:
how_many = min(how_many, len(from) - from_start) to[to_start:to_start+how_many] = from[from_start:from_start+how_many] return how_many
Note: The function doesn't write a terminating null character.
llgo:link (*UnicodeObject).CopyCharacters C.PyUnicode_CopyCharacters
func (*UnicodeObject) Count ¶ added in v0.2.3
func (self *UnicodeObject) Count(substr *Object, start SsizeT, end SsizeT) SsizeT
Count the number of occurrences of substr in str[start:end].
llgo:link (*UnicodeObject).Count C.PyUnicode_Count
func (*UnicodeObject) EncodeFSDefault ¶ added in v0.2.3
func (self *UnicodeObject) EncodeFSDefault() *Object
Encode a Unicode object to the Python filesystem encoding and error handler. Return bytes.
llgo:link (*UnicodeObject).EncodeFSDefault C.PyUnicode_EncodeFSDefault
func (*UnicodeObject) EncodeLocale ¶ added in v0.2.3
func (self *UnicodeObject) EncodeLocale(errors *c.Char) *Object
Encode a Unicode object to the current locale encoding. The encoder is strict is *surrogateescape* is equal to zero, otherwise the "surrogateescape" error handler is used. Return a bytes object. The string cannot contain embedded null characters.
llgo:link (*UnicodeObject).EncodeLocale C.PyUnicode_EncodeLocale
func (*UnicodeObject) Equal ¶ added in v0.2.3
func (self *UnicodeObject) Equal(str2 *Object) c.Int
llgo:link (*UnicodeObject).Equal C.PyUnicode_Equal
func (*UnicodeObject) EqualToUTF8 ¶ added in v0.2.3
func (self *UnicodeObject) EqualToUTF8(_llcppg_param2 *c.Char) c.Int
Compare a Unicode object with UTF-8 encoded C string. Return 1 if they are equal, or 0 otherwise. This function does not raise exceptions.
llgo:link (*UnicodeObject).EqualToUTF8 C.PyUnicode_EqualToUTF8
func (*UnicodeObject) EqualToUTF8AndSize ¶ added in v0.2.3
llgo:link (*UnicodeObject).EqualToUTF8AndSize C.PyUnicode_EqualToUTF8AndSize
func (*UnicodeObject) FSConverter ¶ added in v0.2.3
func (self *UnicodeObject) FSConverter(_llcppg_param2 unsafe.Pointer) c.Int
ParseTuple converter: encode str objects to bytes using PyUnicode_EncodeFSDefault(); bytes objects are output as-is.
llgo:link (*UnicodeObject).FSConverter C.PyUnicode_FSConverter
func (*UnicodeObject) FSDecoder ¶ added in v0.2.3
func (self *UnicodeObject) FSDecoder(_llcppg_param2 unsafe.Pointer) c.Int
ParseTuple converter: decode bytes objects to unicode using PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is.
llgo:link (*UnicodeObject).FSDecoder C.PyUnicode_FSDecoder
func (*UnicodeObject) Fill ¶ added in v0.2.3
func (self *UnicodeObject) Fill(start SsizeT, length SsizeT, fill_char UCS4) SsizeT
Fill a string with a character: write fill_char into unicode[start:start+length].
Fail if fill_char is bigger than the string maximum character, or if the string has more than 1 reference.
Return the number of written character, or return -1 and raise an exception on error.
llgo:link (*UnicodeObject).Fill C.PyUnicode_Fill
func (*UnicodeObject) Find ¶ added in v0.2.3
Return the first position of substr in str[start:end] using the given search direction or -1 if not found. -2 is returned in case an error occurred and an exception is set.
llgo:link (*UnicodeObject).Find C.PyUnicode_Find
func (*UnicodeObject) FindChar ¶ added in v0.2.3
Like PyUnicode_Find, but search for single character only.
llgo:link (*UnicodeObject).FindChar C.PyUnicode_FindChar
func (*UnicodeObject) Format ¶ added in v0.2.3
func (self *UnicodeObject) Format(args *Object) *Object
Apply an argument tuple or dictionary to a format string and return the resulting Unicode string.
llgo:link (*UnicodeObject).Format C.PyUnicode_Format
func (*UnicodeObject) IsIdentifier ¶ added in v0.2.3
func (self *UnicodeObject) IsIdentifier() c.Int
Checks whether argument is a valid identifier.
llgo:link (*UnicodeObject).IsIdentifier C.PyUnicode_IsIdentifier
func (*UnicodeObject) Join ¶ added in v0.2.3
func (self *UnicodeObject) Join(seq *Object) *Object
Join a sequence of strings using the given separator and return the resulting Unicode string.
llgo:link (*UnicodeObject).Join C.PyUnicode_Join
func (*UnicodeObject) Length ¶ added in v0.2.3
func (self *UnicodeObject) Length() SsizeT
Get the length of the Unicode object.
llgo:link (*UnicodeObject).Length C.PyUnicode_GetLength
func (*UnicodeObject) Partition ¶ added in v0.2.3
func (self *UnicodeObject) Partition(sep *Object) *Object
Partition a string using a given separator.
llgo:link (*UnicodeObject).Partition C.PyUnicode_Partition
func (*UnicodeObject) RPartition ¶ added in v0.2.3
func (self *UnicodeObject) RPartition(sep *Object) *Object
Partition a string using a given separator, searching from the end of the string.
llgo:link (*UnicodeObject).RPartition C.PyUnicode_RPartition
func (*UnicodeObject) RSplit ¶ added in v0.2.3
func (self *UnicodeObject) RSplit(sep *Object, maxsplit SsizeT) *Object
Split a string giving a list of Unicode strings.
If sep is NULL, splitting will be done at all whitespace substrings. Otherwise, splits occur at the given separator.
At most maxsplit splits will be done. But unlike PyUnicode_Split PyUnicode_RSplit splits from the end of the string. If negative, no limit is set.
Separators are not included in the resulting list.
llgo:link (*UnicodeObject).RSplit C.PyUnicode_RSplit
func (*UnicodeObject) ReadChar ¶ added in v0.2.3
func (self *UnicodeObject) ReadChar(index SsizeT) UCS4
Read a character from the string.
llgo:link (*UnicodeObject).ReadChar C.PyUnicode_ReadChar
func (*UnicodeObject) Replace ¶ added in v0.2.3
func (self *UnicodeObject) Replace(substr *Object, replstr *Object, maxcount SsizeT) *Object
Replace at most maxcount occurrences of substr in str with replstr and return the resulting Unicode object.
llgo:link (*UnicodeObject).Replace C.PyUnicode_Replace
func (*UnicodeObject) RichCompare ¶ added in v0.2.3
func (self *UnicodeObject) RichCompare(right *Object, op c.Int) *Object
Rich compare two strings and return one of the following:
- NULL in case an exception was raised - Py_True or Py_False for successful comparisons - Py_NotImplemented in case the type combination is unknown
Possible values for op:
Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE
llgo:link (*UnicodeObject).RichCompare C.PyUnicode_RichCompare
func (*UnicodeObject) Split ¶ added in v0.2.3
func (self *UnicodeObject) Split(sep *Object, maxsplit SsizeT) *Object
Split a string giving a list of Unicode strings.
If sep is NULL, splitting will be done at all whitespace substrings. Otherwise, splits occur at the given separator.
At most maxsplit splits will be done. If negative, no limit is set.
Separators are not included in the resulting list.
llgo:link (*UnicodeObject).Split C.PyUnicode_Split
func (*UnicodeObject) Splitlines ¶ added in v0.2.3
func (self *UnicodeObject) Splitlines(keepends c.Int) *Object
Dito, but split at line breaks.
CRLF is considered to be one line break. Line breaks are not included in the resulting list.
llgo:link (*UnicodeObject).Splitlines C.PyUnicode_Splitlines
func (*UnicodeObject) Substring ¶ added in v0.2.3
func (self *UnicodeObject) Substring(start SsizeT, end SsizeT) *Object
llgo:link (*UnicodeObject).Substring C.PyUnicode_Substring
func (*UnicodeObject) Tailmatch ¶ added in v0.2.3
func (self *UnicodeObject) Tailmatch(substr *Object, start SsizeT, end SsizeT, direction c.Int) SsizeT
Return 1 if substr matches str[start:end] at the given tail end, 0 otherwise.
llgo:link (*UnicodeObject).Tailmatch C.PyUnicode_Tailmatch
func (*UnicodeObject) Translate ¶ added in v0.2.3
func (self *UnicodeObject) Translate(table *Object, errors *c.Char) *Object
Translate a string by applying a character mapping table to it and return the resulting Unicode object.
The mapping table must map Unicode ordinal integers to Unicode strings, Unicode ordinal integers or None (causing deletion of the character).
Mapping tables may be dictionaries or sequences. Unmapped character ordinals (ones which cause a LookupError) are left untouched and are copied as-is.
llgo:link (*UnicodeObject).Translate C.PyUnicode_Translate
func (*UnicodeObject) Unicode_DATA ¶ added in v0.2.3
func (self *UnicodeObject) Unicode_DATA() unsafe.Pointer
llgo:link (*UnicodeObject).Unicode_DATA C.PyUnicode_DATA
func (*UnicodeObject) Unicode_KIND ¶ added in v0.2.3
func (self *UnicodeObject) Unicode_KIND() c.Int
llgo:link (*UnicodeObject).Unicode_KIND C.PyUnicode_KIND
func (*UnicodeObject) WriteChar ¶ added in v0.2.3
func (self *UnicodeObject) WriteChar(index SsizeT, character UCS4) c.Int
Write a character to the string. The string must have been created through PyUnicode_New, must not be shared, and must not have been hashed yet.
Return 0 on success, -1 on error.
llgo:link (*UnicodeObject).WriteChar C.PyUnicode_WriteChar
type UnicodeWriter ¶ added in v0.2.0
type UnicodeWriter struct {
}
func UnicodeWriterCreate ¶ added in v0.2.0
func UnicodeWriterCreate(length SsizeT) *UnicodeWriter
func (*UnicodeWriter) DecodeUTF8Stateful ¶ added in v0.2.0
func (self *UnicodeWriter) DecodeUTF8Stateful(string *c.Char, length SsizeT, errors *c.Char, consumed *SsizeT) c.Int
llgo:link (*UnicodeWriter).DecodeUTF8Stateful C.PyUnicodeWriter_DecodeUTF8Stateful
func (*UnicodeWriter) Discard ¶ added in v0.2.0
func (self *UnicodeWriter) Discard()
llgo:link (*UnicodeWriter).Discard C.PyUnicodeWriter_Discard
func (*UnicodeWriter) Finish ¶ added in v0.2.0
func (self *UnicodeWriter) Finish() *Object
llgo:link (*UnicodeWriter).Finish C.PyUnicodeWriter_Finish
func (*UnicodeWriter) Format ¶ added in v0.2.0
llgo:link (*UnicodeWriter).Format C.PyUnicodeWriter_Format
func (*UnicodeWriter) WriteASCII ¶ added in v0.2.0
llgo:link (*UnicodeWriter).WriteASCII C.PyUnicodeWriter_WriteASCII
func (*UnicodeWriter) WriteChar ¶ added in v0.2.0
func (self *UnicodeWriter) WriteChar(ch UCS4) c.Int
llgo:link (*UnicodeWriter).WriteChar C.PyUnicodeWriter_WriteChar
func (*UnicodeWriter) WriteRepr ¶ added in v0.2.0
func (self *UnicodeWriter) WriteRepr(obj *Object) c.Int
llgo:link (*UnicodeWriter).WriteRepr C.PyUnicodeWriter_WriteRepr
func (*UnicodeWriter) WriteStr ¶ added in v0.2.0
func (self *UnicodeWriter) WriteStr(obj *Object) c.Int
llgo:link (*UnicodeWriter).WriteStr C.PyUnicodeWriter_WriteStr
func (*UnicodeWriter) WriteSubstring ¶ added in v0.2.0
llgo:link (*UnicodeWriter).WriteSubstring C.PyUnicodeWriter_WriteSubstring
func (*UnicodeWriter) WriteUCS4 ¶ added in v0.2.0
func (self *UnicodeWriter) WriteUCS4(str *UCS4, size SsizeT) c.Int
llgo:link (*UnicodeWriter).WriteUCS4 C.PyUnicodeWriter_WriteUCS4
func (*UnicodeWriter) WriteUTF8 ¶ added in v0.2.0
llgo:link (*UnicodeWriter).WriteUTF8 C.PyUnicodeWriter_WriteUTF8
func (*UnicodeWriter) WriteWideChar ¶ added in v0.2.0
llgo:link (*UnicodeWriter).WriteWideChar C.PyUnicodeWriter_WriteWideChar
type VarObject ¶ added in v0.2.0
func X_ObjectNewVar ¶ added in v0.2.0
func X_ObjectNewVar(_llcppg_param1 *TypeObject, _llcppg_param2 SsizeT) *VarObject
func X_Object_GC_NewVar ¶ added in v0.2.0
func X_Object_GC_NewVar(_llcppg_param1 *TypeObject, _llcppg_param2 SsizeT) *VarObject
func X_Object_GC_Resize ¶ added in v0.2.0
func (*VarObject) ObjectInit ¶ added in v0.2.3
func (self *VarObject) ObjectInit(_llcppg_param2 *TypeObject, _llcppg_param3 SsizeT) *VarObject
llgo:link (*VarObject).ObjectInit C.PyObject_InitVar
type Vectorcallfunc ¶
type Vectorcallfunc = func(_llcppg_param1 *Object, _llcppg_param2 **Object, _llcppg_param3 c.SizeT, _llcppg_param4 *Object) *Object
llgo:type C
func VectorcallFunction ¶ added in v0.2.3
func VectorcallFunction(callable *Object) Vectorcallfunc
type WeakReference ¶ added in v0.2.0
type WeakReference = X_WeakReference
type WideStringList ¶ added in v0.2.0
--- PyWideStringList ------------------------------------------------
type WrapperDescrObject ¶ added in v0.2.0
type WrapperDescrObject struct {
DCommon DescrObject
DBase *Wrapperbase
DWrapped unsafe.Pointer
}
type Wrapperbase ¶
type Wrapperfunc ¶
type Wrapperfunc = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 unsafe.Pointer) *Object
llgo:type C
type WrapperfuncKwds ¶
type WrapperfuncKwds = func(_llcppg_param1 *Object, _llcppg_param2 *Object, _llcppg_param3 unsafe.Pointer, _llcppg_param4 *Object) *Object
llgo:type C
type X_ArgParser ¶ added in v0.2.0
type X_AsyncGenObject ¶ added in v0.2.0
type X_AsyncGenObject struct {
}
type X_CFunctionFast ¶ added in v0.2.0
type X_CFunctionFast = CFunctionFast
For backwards compatibility. `METH_FASTCALL` was added to the stable API in 3.10 alongside `_PyCFunctionFastWithKeywords` and `_PyCFunctionFast`. Note that the underscore-prefixed names were documented in public docs; people may be using them.
type X_CFunctionFastWithKeywords ¶ added in v0.2.0
type X_CFunctionFastWithKeywords = CFunctionFastWithKeywords
type X_CoCached ¶ added in v0.2.0
type X_CoMonitoringData ¶ added in v0.2.0
type X_CoMonitoringData struct {
}
type X_CodeLocationInfoKind ¶ added in v0.2.0
const ( // short forms are 0 to 9 CODE_LOCATION_INFO_SHORT0 X_CodeLocationInfoKind = 0 // one lineforms are 10 to 12 CODE_LOCATION_INFO_ONE_LINE0 X_CodeLocationInfoKind = 10 // one lineforms are 10 to 12 CODE_LOCATION_INFO_ONE_LINE1 X_CodeLocationInfoKind = 11 // one lineforms are 10 to 12 CODE_LOCATION_INFO_ONE_LINE2 X_CodeLocationInfoKind = 12 // one lineforms are 10 to 12 CODE_LOCATION_INFO_NO_COLUMNS X_CodeLocationInfoKind = 13 // one lineforms are 10 to 12 CODE_LOCATION_INFO_LONG X_CodeLocationInfoKind = 14 // one lineforms are 10 to 12 CODE_LOCATION_INFO_NONE X_CodeLocationInfoKind = 15 )
type X_CoroObject ¶ added in v0.2.0
type X_CoroObject struct {
}
type X_ErrStackItem ¶ added in v0.2.0
type X_ErrStackItem = X_errStackitem
type X_ExecutorArray ¶ added in v0.2.0
type X_ExecutorArray struct {
Size c.Int
Capacity c.Int
Executors [1]*X_ExecutorObject
}
type X_ExecutorObject ¶ added in v0.2.0
type X_ExecutorObject struct {
}
type X_FrameEvalFunction ¶ added in v0.2.0
type X_FrameEvalFunction = func(_llcppg_param1 *ThreadState, _llcppg_param2 *X_InterpreterFrame, _llcppg_param3 c.Int) *Object
Frame evaluation API
llgo:type C
func X_InterpreterStateGetEvalFrameFunc ¶ added in v0.2.0
func X_InterpreterStateGetEvalFrameFunc(interp *InterpreterState) X_FrameEvalFunction
type X_GenObject ¶ added in v0.2.0
type X_GenObject struct {
}
type X_Identifier ¶ added in v0.2.0
String Literals This structure helps managing static strings. The basic usage goes like this: Instead of doing
r = PyObject_CallMethod(o, "foo", "args", ...);
do
_Py_IDENTIFIER(foo); ... r = _PyObject_CallMethodId(o, &PyId_foo, "args", ...);
PyId_foo is a static variable, either on block level or file level. On first usage, the string "foo" is interned, and the structures are linked. On interpreter shutdown, all strings are released.
Alternatively, _Py_static_string allows choosing the variable name. _PyUnicode_FromId returns a borrowed reference to the interned string. _PyObject_{Get,Set,Has}AttrId are __getattr__ versions using _Py_Identifier*.
type X_InterpreterFrame ¶ added in v0.2.0
type X_InterpreterFrame struct {
}
type X_LongValue ¶ added in v0.2.0
Long integer representation.
Long integers are made up of a number of 30- or 15-bit digits, depending on the platform. The number of digits (ndigits) is stored in the high bits of the lv_tag field (lvtag >> _PyLong_NON_SIZE_BITS).
The absolute value of a number is equal to SUM(for i=0 through ndigits-1) ob_digit[i] * 2**(PyLong_SHIFT*i)
The sign of the value is stored in the lower 2 bits of lv_tag.
- 0: Positive - 1: Zero - 2: Negative
The third lowest bit of lv_tag is set to 1 for the small ints.
In a normalized number, ob_digit[ndigits-1] (the most significant digit) is never zero. Also, in all cases, for all valid i, 0 <= ob_digit[i] <= PyLong_MASK.
The allocation function takes care of allocating extra memory so that ob_digit[0] ... ob_digit[ndigits-1] are actually available. We always allocate memory for at least one digit, so accessing ob_digit[0] is always safe. However, in the case ndigits == 0, the contents of ob_digit[0] may be undefined.
type X_ManagedBufferObject ¶ added in v0.2.0
type X_MonitoringState ¶ added in v0.2.0
type X_OnceFlag ¶ added in v0.2.0
A data structure that can be used to run initialization code once in a thread-safe manner. The C++11 equivalent is std::call_once.
type X_RemoteDebuggerSupport ¶ added in v0.2.0
type X_StackChunk ¶ added in v0.2.0
type X_StackChunk = X_stackChunk
type X_UnicodeWriter ¶ added in v0.2.0
type X_UnicodeWriter struct {
Buffer *Object
Data unsafe.Pointer
Kind c.Int
Maxchar UCS4
Size SsizeT
Pos SsizeT
MinLength SsizeT
MinChar UCS4
Overallocate uint8
Readonly uint8
}
--- Private _PyUnicodeWriter API ---------------------------------------
type X_WeakReference ¶ added in v0.2.0
type X_WeakReference struct {
ObBase Object
WrObject *Object
WrCallback *Object
Hash HashT
WrPrev *WeakReference
WrNext *WeakReference
Vectorcall Vectorcallfunc
}
PyWeakReference is the base struct for the Python ReferenceType, ProxyType, and CallableProxyType.
type X_dictkeysobject ¶
type X_dictkeysobject struct {
}
type X_dictvalues ¶
type X_dictvalues struct {
}
type X_errStackitem ¶
type X_errStackitem struct {
ExcValue *Object
PreviousItem *X_errStackitem
}
type X_frozen ¶
var ImportFrozenModules *X_frozen
Embedding apps may change this pointer to point to their favorite collection of frozen modules:
type X_heaptypeobject ¶
type X_heaptypeobject struct {
HtType TypeObject
AsAsync AsyncMethods
AsNumber NumberMethods
AsMapping MappingMethods
AsSequence SequenceMethods
AsBuffer BufferProcs
HtName *Object
HtSlots *Object
HtQualname *Object
HtCachedKeys *X_dictkeysobject
HtModule *Object
X_htTpname *c.Char
HtToken unsafe.Pointer
X_specCache X_specializationCache
}
The *real* layout of a type object when allocated on the heap
type X_inittab ¶
llgo:type C
var ImportInittab *X_inittab
This is not used after Py_Initialize() is called.
func (*X_inittab) ImportExtendInittab ¶ added in v0.3.0
llgo:link (*X_inittab).ImportExtendInittab C.PyImport_ExtendInittab
type X_lineOffsets ¶
type X_longobject ¶
type X_longobject struct {
ObBase Object
LongValue X_LongValue
}
type X_object ¶
type X_object struct {
ObType *TypeObject
// contains filtered or unexported fields
}
func (*X_object) XGof_ref_ob_refcnt_full ¶
type X_odictobject ¶
type X_odictobject struct {
}
type X_pycontextobject ¶
type X_pycontextobject struct {
}
type X_pycontexttokenobject ¶
type X_pycontexttokenobject struct {
}
type X_pycontextvarobject ¶
type X_pycontextvarobject struct {
}
type X_specializationCache ¶
This struct is used by the specializer It should be treated as an opaque blob by code other than the specializer and interpreter.
type X_stackChunk ¶
type X_traceback ¶
type X_traceback struct {
ObBase Object
TbNext *TracebackObject
TbFrame *FrameObject
TbLasti c.Int
TbLineno c.Int
}
type X_ts ¶
type X_ts struct {
Prev *ThreadState
Next *ThreadState
Interp *InterpreterState
EvalBreaker c.UintptrT
X_status _llcppg_anon_5
HoldsGil c.Int
X_whence c.Int
State c.Int
PyRecursionRemaining c.Int
PyRecursionLimit c.Int
RecursionHeadroom c.Int
Tracing c.Int
WhatEvent c.Int
CurrentFrame *X_InterpreterFrame
CProfilefunc Tracefunc
CTracefunc Tracefunc
CProfileobj *Object
CTraceobj *Object
CurrentException *Object
ExcInfo *X_ErrStackItem
Dict *Object
GilstateCounter c.Int
AsyncExc *Object
ThreadId c.Ulong
NativeThreadId c.Ulong
DeleteLater *Object
CriticalSection c.UintptrT
CoroutineOriginTrackingDepth c.Int
AsyncGenFirstiter *Object
AsyncGenFinalizer *Object
Context *Object
ContextVer c.Uint64T
Id c.Uint64T
DatastackChunk *X_StackChunk
DatastackTop **Object
DatastackLimit **Object
ExcState X_ErrStackItem
CurrentExecutor *Object
DictGlobalVersion c.Uint64T
ThreadingLocalKey *Object
ThreadingLocalSentinel *Object
RemoteDebuggerSupport X_RemoteDebuggerSupport
DatastackCachedChunk *X_StackChunk
}
type X_tssT ¶ added in v0.2.0
When Py_LIMITED_API is not defined, the type layout of Py_tss_t is exposed to allow static allocation in the API clients. Even in this case, you must handle TSS keys through API functions due to compatibility.
type X_typeobject ¶
type X_typeobject struct {
ObBase VarObject
TpName *c.Char
TpBasicsize SsizeT
TpItemsize SsizeT
TpDealloc Destructor
TpVectorcallOffset SsizeT
TpGetattr Getattrfunc
TpSetattr Setattrfunc
TpAsAsync *AsyncMethods
TpRepr Reprfunc
TpAsNumber *NumberMethods
TpAsSequence *SequenceMethods
TpAsMapping *MappingMethods
TpHash Hashfunc
TpCall Ternaryfunc
TpStr Reprfunc
TpGetattro Getattrofunc
TpSetattro Setattrofunc
TpAsBuffer *BufferProcs
TpFlags c.Ulong
TpDoc *c.Char
TpTraverse Traverseproc
TpClear Inquiry
TpRichcompare Richcmpfunc
TpWeaklistoffset SsizeT
TpIter Getiterfunc
TpIternext Iternextfunc
TpMethods *MethodDef
TpMembers *MemberDef
TpGetset *GetSetDef
TpBase *TypeObject
TpDict *Object
TpDescrGet Descrgetfunc
TpDescrSet Descrsetfunc
TpDictoffset SsizeT
TpInit Initproc
TpAlloc Allocfunc
TpNew Newfunc
TpFree Freefunc
TpIsGc Inquiry
TpBases *Object
TpMro *Object
TpCache *Object
TpSubclasses unsafe.Pointer
TpWeaklist *Object
TpDel Destructor
TpVersionTag c.Uint
TpFinalize Destructor
TpVectorcall Vectorcallfunc
TpWatched uint8
TpVersionsUsed c.Uint16T
}
If this structure is modified, Doc/includes/typestruct.h should be updated as well.
Source Files
¶
- abstract.go
- audit.go
- bltinmodule.go
- boolobject.go
- bytearrayobject.go
- bytesobject.go
- cellobject.go
- ceval.go
- classobject.go
- code.go
- codecs.go
- compile.go
- complexobject.go
- context.go
- critical_section.go
- descrobject.go
- dictobject.go
- enumobject.go
- fileobject.go
- fileutils.go
- floatobject.go
- funcobject.go
- genericaliasobject.go
- genobject.go
- import.go
- initconfig.go
- intrcheck.go
- iterobject.go
- listobject.go
- llcppg.i.go
- lock.go
- longintrepr.go
- longobject.go
- memoryobject.go
- methodobject.go
- modsupport.go
- moduleobject.go
- monitoring.go
- object.go
- objimpl.go
- odictobject.go
- osmodule.go
- patchlevel.go
- picklebufobject.go
- pyatomic.go
- pybuffer.go
- pycapsule.go
- pyconfig.go
- pyctype.go
- pydebug.go
- pyerrors.go
- pyframe.go
- pyhash.go
- pylifecycle.go
- pymacro.go
- pymath.go
- pymem.go
- pyport.go
- pystate.go
- pystrcmp.go
- pystrtod.go
- pythonrun.go
- pythread.go
- pytime.go
- pytypedefs.go
- rangeobject.go
- refcount.go
- setobject.go
- sliceobject.go
- structseq.go
- sysmodule.go
- traceback.go
- tracemalloc.go
- tupleobject.go
- typeslots.go
- unicodeobject.go
- warnings.go
- weakrefobject.go