MCPcopy Index your code
hub / github.com/python/cpython / _from_int

Method _from_int

Lib/uuid.py:268–274  ·  view source on GitHub ↗

Create a UUID from an integer *value*. Internal use only.

(cls, value)

Source from the content-addressed store, hash-verified

266
267 @classmethod
268 def _from_int(cls, value):
269 """Create a UUID from an integer *value*. Internal use only."""
270 assert 0 <= value <= _UINT_128_MAX, repr(value)
271 self = object.__new__(cls)
272 object.__setattr__(self, 'int', value)
273 object.__setattr__(self, 'is_safe', SafeUUID.unknown)
274 return self
275
276 def __getstate__(self):
277 d = {'int': self.int}

Callers 6

uuid3Function · 0.80
uuid4Function · 0.80
uuid5Function · 0.80
uuid6Function · 0.80
uuid7Function · 0.80
uuid8Function · 0.80

Calls 2

__new__Method · 0.45
__setattr__Method · 0.45

Tested by

no test coverage detected