Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ZeroIntensity/pointers.py
/ make_from
Method
make_from
src/pointers/object_pointer.py:61–66 ·
view source on GitHub ↗
(cls, obj: Nullable[T])
Source
from the content-addressed store, hash-verified
59
60
@classmethod
61
def
make_from(cls, obj: Nullable[T]) ->
"Pointer[T]"
:
62
is_null = obj is NULL
63
return
Pointer(
64
id(obj)
if
not is_null
else
None,
65
not is_null,
66
)
67
68
69
@handle
Callers
1
to_ptr
Function · 0.45
Calls
1
Pointer
Class · 0.85
Tested by
no test coverage detected