<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I post this here because I don't know how to
describe it in the bug tracker.</FONT></DIV>
<DIV><FONT face=Arial size=2>This simple code reads a text file and removes all
the dots, parenthesis and signs from each word, which then is printed in
the screen:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>>>> f = open('c:/documents and
settings/usuario1/escritorio/sw3.txt')<BR>>>> for line in
f:<BR> for word in
line.split():<BR>
st=[]<BR>
for i in
word:<BR>
if i not in
['.','(',')','?']:<BR>
st.append(i)<BR>
print ''.join(st)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It works in Cpython, but in Ironpython it just
prints empty spaces intead of words.</FONT></DIV>
<DIV><FONT face=Arial size=2>Any hint?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Luis</FONT></DIV></BODY></HTML>