We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

str.isalnum

isalnum()

Return true if all characters in the string are alphanumeric and there is at least one character, false otherwise.

For 8-bit strings, this method is locale-dependent.