MCPcopy Create free account
hub / github.com/goplus/py / EnterRecursiveCall

Function EnterRecursiveCall

python.go:77–81  ·  view source on GitHub ↗

EnterRecusiveCall marks a point where a recursive Go-level call is about to be performed. It returns true if the recursive call is permitted, otherwise a Python exception is set and false is returned. where is a string that will be appended to the RuntimeError set if the recursion limit has been e

(where string)

Source from the content-addressed store, hash-verified

75// recursive function may not invoke Python code (which automatically tracks
76// recursion depth).
77func EnterRecursiveCall(where string) bool {
78 s := C.CString(where)
79 defer C.free(unsafe.Pointer(s))
80 return C.enterRecursive(s) == 0
81}
82
83// LeaveRecursiveCall must be called after a recursive call that was indicated
84// by EnterRecursiveCall.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…