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