Lines Matching defs:version
4 uuid1(), uuid3(), uuid4(), uuid5() for generating version 1, 3, 4, and 5
129 version the UUID version number (1 through 5, meaningful only
140 int=None, version=None,
162 be given. The 'version' argument is optional; if given, the resulting
163 UUID will have its variant and version set according to RFC 4122,
213 if version is not None:
214 if not 1 <= version <= 5:
215 raise ValueError('illegal version number')
219 # Set the version number.
221 int |= version << 76
354 def version(self):
355 # The version bits are only meaningful for RFC 4122 UUIDs.
680 # When the system provides a version-1 UUID generator, use it (but don't
710 clock_seq_hi_variant, clock_seq_low, node), version=1)
719 return UUID(bytes=digest[:16], version=3)
723 return UUID(bytes=os.urandom(16), version=4)
729 return UUID(bytes=hash[:16], version=5)