Luis M. Gonzalez
luismg at gmx.net
Thu Jun 30 14:25:17 PDT 2005
I post this here because I don't know how to describe it in the bug tracker.
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:
>>> f = open('c:/documents and settings/usuario1/escritorio/sw3.txt')
>>> for line in f:
for word in line.split():
for i in word:
if i not in ['.','(',')','?']:
It works in Cpython, but in Ironpython it just prints empty spaces intead of words.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users-ironpython.com