>> Exactly my feelings. Still, people seem to like string.letters a lot, >> and I'm unsure as to why that is. > > I think because it feels like the most direct, least obscured > approach. Calling ord() feels like a hack, re is overkill and > maligned for many reasons, and c.isalpha() would behave differently if > passed unicode instead of str.
I think the first ones might apply, but the last one surely doesn't. When people use string.letters, they don't consider issues such as character set. If they would, they knew that string.letters may vary with locale. > What's really frightening > is the tendency to use string.letters to build regular expressions. Indeed. However, if string.letters is removed, I trust that people start listing all characters explicitly in the regex, and curse python-dev for removing such a useful facility. Regards, Martin _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
