def print_fields(bf, *args, **kwargs):
    """
    Print all the fields of a Bitfield object to stdout.  This is
    primarly a diagnostic aid during debugging.
    """
    
    vals = {k: hex(v) for k, v in bf.items()}
    print(bf.base, vals, *args, **kwargs)
def print_fields ( bf , * args , ** kwargs ) : vals = { k : hex ( v ) for k , v in bf . items ( ) } print ( bf . base , vals , * args , ** kwargs )
Print all the fields of a Bitfield object to stdout.  This is
    primarly a diagnostic aid during debugging.