It can do simple things like this: Or somewhat more complex like that: The full documentation also covers the optional queued, thread-safe, async, serialization, and builder modules. See Unit Tests to ...
When the object is passed as a keyword argument, _freeze recurses into the kwargs dict and hits the tobytes branch. Positional arguments are unaffected, because _freeze (args) short-circuits on the ...