"John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John -
Thanks for the updates. Comments below... -- Paul > Paul McGuire wrote: > >> You may have to do some setup >> of your locale for proper handling of unicode.isupper, etc., > > Whatever gave you that impression? > Nothing. Just my own ignorance of unicode and i18n. This post really is just string mechanics and re's - I wasn't sure I had all the underlying unicode stuff right. >> uppers = u"".join( unichr(i) for i in range(sys.maxunicode) >> if unichr(i).isupper() ) >> lowers = u"".join( unichr(i) for i in range(sys.maxunicode) >> if unichr(i).islower() ) > > Just in case the OP is running a 32-bit unicode implementation, you > might want to make that xrange, not range :-) > Good tip. I rarely use xrange, it seems like such a language wart. Isn't "range" going to become what "xrange" is in Py3k? -- http://mail.python.org/mailman/listinfo/python-list