(print_list)
Internal function which prints the fields of a struct/class/union.
Internal function which prints the fields of a struct/class/union.
Internal function which prints the fields of a struct / class / union .
def _print_fields(print_list):
        """Internal function which prints the fields of a struct/class/union.
        """
        max_field_name_length = 0
        for pair in print_list:
            if max_field_name_length < len(pair[0]):
                max_field_name_length = len(pair[0])

        for pair in print_list:
            print ("  %*s = %s" % (max_field_name_length, pair[0], pair[1]))
def _print_fields ( print_list ) : max_field_name_length = 0 for pair in print_list : if max_field_name_length < len ( pair [ 0 ] ) : max_field_name_length = len ( pair [ 0 ] ) for pair in print_list : print ( "  %*s = %s" % ( max_field_name_length , pair [ 0 ] , pair [ 1 ] ) )