def _is_printable(char):
 category = unicodedata.category(char)
 return ((not category.startswith('C')) and ((not category.startswith('Z')) or (category == 'Zs')))

def _is_printable ( char ) : category = unicodedata . category ( char ) return ( ( not category . startswith ( 'C' ) ) and ( ( not category . startswith ( 'Z' ) ) or ( category == 'Zs' ) ) )
determine if a unicode code point is printable .