def _register_builtin_class_extensions(self):
@self.register(uuid.UUID)<EOL>def _hash_uuid(data):<EOL><INDENT>hashable = data.bytes<EOL>prefix = b'<STR_LIT>'<EOL>return prefix, hashable<EOL><DEDENT>@self.register(OrderedDict)<EOL>def _hash_ordered_dict(data):<EOL><INDENT>"""<STR_LIT>"""<EOL>hashable = b'<STR_LIT>'.join(_hashable_sequence(list(data.items())))<EOL>prefix = b'<STR_LIT>'<EOL>return prefix, hashable<EOL><DEDENT>
Register hashing extensions for a selection of classes included in
python stdlib.

Example:
    >>> data = uuid.UUID('7e9d206b-dc02-4240-8bdb-fffe858121d0')
    >>> print(hash_data(data, base='abc', hasher='sha512', types=True)[0:8])
    cryarepd
    >>> data = OrderedDict([('a', 1), ('b', 2), ('c', [1, 2, 3]),
    >>>                     (4, OrderedDict())])
    >>> print(hash_data(data, base='abc', hasher='sha512', types=True)[0:8])
    qjspicvv

    gpxtclct