Ian Bicking: the old part of his blog

Comment

What about iterating over a string to make sure all the characters are in a certain charset?

Though I'd personally just do a try/except ... seems more Pythonic.
Comment on Python nit, chapter 3
by Joe Grossberg