What is the best way to strip all non alphanumeric characters from a string, using Python?
The solutions presented in the PHP variant of this question will probably
You could try:
print ''.join(ch for ch in some_string if ch.isalnum())