MCPcopy Create free account
hub / github.com/ZeroIntensity/pointers.py / assign

Method assign

src/pointers/var_pointer.py:93–104  ·  view source on GitHub ↗
(self, value: Nullable[Union["VarPointer[T]", T]], *, frame: int = 2)

Source from the content-addressed store, hash-verified

91 return self._get_scope()[self.name]
92
93 def assign(self, value: Nullable[Union["VarPointer[T]", T]], *, frame: int = 2) -> None:
94 if value is NULL:
95 self._address = 0
96 self.name = None
97 return
98
99 fframe = inspect.currentframe()
100 assert fframe
101 assert fframe.f_back
102
103 self.name = nameof(value, frame=frame)
104 self._address = id(value)
105
106 def __irshift__(
107 self,

Callers 3

__irshift__Method · 0.95
moveMethod · 0.45
_Function · 0.45

Calls

no outgoing calls

Tested by 1

_Function · 0.36