def pprint_simple_array(val, displaywidth, msg_nocr, msg, lineprefix='<STR_LIT>'):
if type(val) != list:<EOL><INDENT>return False<EOL><DEDENT>numeric = True<EOL>for i in range(len(val)):<EOL><INDENT>if not (type(val[i]) in [bool, float, int]):<EOL><INDENT>numeric = False<EOL>if not (type(val[i]) in [bool, float, int, bytes]):<EOL><INDENT>return False<EOL><DEDENT>pass<EOL><DEDENT>pass<EOL><DEDENT>mess = columnize([repr(v) for v in val],<EOL>opts={"<STR_LIT>": True,<EOL>"<STR_LIT>": lineprefix,<EOL>"<STR_LIT>": int(displaywidth)-<NUM_LIT:3>,<EOL>'<STR_LIT>': not numeric})<EOL>msg_nocr(mess)<EOL>return True<EOL>
Try to pretty print a simple case where a list is not nested.
    Return True if we can do it and False if not.