J
Joshua Robinson
Hi *Monte-Pythons*,
x = "this is a simple : text: that has colon"
s = x.replace(string.punctuation, ""); OR
s = x.replace(string.punctuation, "");
print x # 'this is a simple : text: that has colon'
# The colon is still in the text !!!!
Is this a bug or am I doing something wrong ?
Py.Version: 2.7
OS: Ubuntu 12.10 (64 bits)
Cheers,
-Joshua
x = "this is a simple : text: that has colon"
s = x.replace(string.punctuation, ""); OR
s = x.replace(string.punctuation, "");
print x # 'this is a simple : text: that has colon'
# The colon is still in the text !!!!
Is this a bug or am I doing something wrong ?
Py.Version: 2.7
OS: Ubuntu 12.10 (64 bits)
Cheers,
-Joshua