You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-07-04.15:55:28.766>created_at=<Date2008-07-04.13:30:04.894>labels= ['expert-unicode']
title='Undefined unicode characters should be non-printable'updated_at=<Date2008-07-04.15:55:28.742>user='https://github.com/amauryfa'
str.isprintable() returns True for undefined unicode code points:
>>> c ="\ufffe"
>>> unicodedata.category(c)
'Cn' # (Other, Not Assigned)
>>> c.isprintable()
True
Same for "\u0242", "\ufb12"...
The cause is probably in unicodectype.c: _PyUnicode_IsPrintable():
return (ctype->flags & NONPRINTABLE_MASK) == 0;
but ctype->flags is 0 for undefined chars.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: