
Oct. 23, 2002
12:48 a.m.
Can someone tell me what the proper way to do this is? Or just point me at the relevant documentation? I've scoured the online docs and *Python Essential Reference*, and I know more about the codes and unicodedata modules than I did before. But I still don't know how to replace all whitespace with space, or detect words that end with a lowercase letter.
Hang tight. I'm writing isspace() and islower() for UniCode. Then your fix will be much simpler and will leave the Uni-magic all in one place. Raymond Hettinger