I have a list like
[\'hello\', \'...\', \'h3.a\', \'ds4,\']
this should turn into
[\'hello\', \'h3a\', \'ds4\']
import string
print ''.join((x for x in st if x not in string.punctuation))
ps st is the string. for the list is the same...
[''.join(x for x in par if x not in string.punctuation) for par in alist]
i think works well. look at string.punctuaction:
>>> print string.punctuation
!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~