Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ _ptr_int
Function
_ptr_int
lean_py/_runtime.py:325–328 ·
view source on GitHub ↗
(o)
Source
from the content-addressed store, hash-verified
323
_SCALAR_BIT = 1
324
325
def
_ptr_int(o):
326
if
o is None:
327
return
0
328
return
ctypes.cast(o, c_void_p).value or 0
329
330
def
lean_is_scalar(self, o):
331
return
_ptr_int(o) & _SCALAR_BIT == 1
Callers
3
lean_is_scalar
Function · 0.85
lean_box
Function · 0.85
lean_unbox
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected