[Python-Dev] Unicode character property methods

M.-A. Lemburg mal@lemburg.com
Mon, 06 Mar 2000 12:57:29 +0100

As you may have noticed, the Unicode objects provide
new methods .islower(), .isupper() and .istitle(). Finn Bock
mentioned that Java also provides .isdigit() and .isspace().

Question: should Unicode also provide these character
property methods: .isdigit(), .isnumeric(), .isdecimal()
and .isspace() ? Plus maybe .digit(), .numeric() and
.decimal() for the corresponding decoding ?

Similar APIs are already available through the unicodedata
module, but could easily be moved to the Unicode object
(they cause the builtin interpreter to grow a bit in size 
due to the new mapping tables).

BTW, string.atoi et al. are currently not mapped to
string methods... should they be ?

Marc-Andre Lemburg
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/