Home | History | Annotate | Download | only in python2.7

Lines Matching defs:hex

31     # make a UUID from a string of hex digits (braces and hyphens ignored)
34 # convert a UUID to a string of hex digits in standard form
88 hex the UUID as a 32-character hexadecimal string
101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
109 argument. When a string of hex digits is given, curly braces,
122 Exactly one of 'hex', 'bytes', 'bytes_le', 'fields', or 'int' must
125 overriding the given 'hex', 'bytes', 'bytes_le', 'fields', or 'int'.
128 if [hex, bytes, bytes_le, fields, int].count(None) != 4:
129 raise TypeError('need one of hex, bytes, bytes_le, fields, or int')
130 if hex is not None:
131 hex = hex.replace('urn:', '').replace('uuid:', '')
132 hex = hex.strip('{}').replace('-', '')
133 if len(hex) != 32:
135 int = long(hex, 16)
198 hex = '%032x' % self.int
200 hex[:8], hex[8:12], hex[12:16], hex[16:20], hex[20:])
268 hex = property(get_hex)