Message44786
Logged In: YES
user_id=393416
isprint is useful to make sure there are "safe" characters in a
string. In a tty-based application, and you have potentially
hostile text to display to the user, you want to make sure
that no terminal control characters are sent.
isgraph is exactly the same as isprint, except it does not
include the space character.
I do not understand Brett's comment about isxdigit. I would
avoid renaming it since the naming convention already follows
the C functions. And it is not the same as isalnum and
isalpha...which is the same as isdigit (which already exists).
isxdigit tests for a hexadecimal character (0-9 a-f A-F).
I think it would be mildly useful. I can follow up with a patch
for documentation and unit tests. As for Unicode support,
unforutnately I do not know where to begin to update
makeunicodedata.py.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:29:33 | admin | link | issue825313 messages |
2007-08-23 15:29:33 | admin | create | |
|