[IronPython] bug?

Martin Maly martmaly at exchange.microsoft.com
Sat Jul 2 18:18:47 CEST 2005


Thanks for the report, Louis; It is most likely an IronPython bug. I am
going to look into this.
 
Martin


________________________________

	From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
Luis M. Gonzalez
	Sent: Thursday, June 30, 2005 2:25 PM
	To: users-ironpython.com at lists.ironpython.com
	Subject: [IronPython] bug?
	
	
	Hi all,
	 
	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():
	                  st=[]
	                  for i in word:
	                       if i not in ['.','(',')','?']:
	                            st.append(i)
	         print ''.join(st)
	 
	It works in Cpython, but in Ironpython it just prints empty
spaces intead of words.
	Any hint?
	 
	Regards,
	Luis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050702/34e6b11a/attachment.html>


More information about the Ironpython-users mailing list