[IronPython] Why won't these snippets run?

2005-09-18 Thread Ray Djajadinata
Hello, I'm using Iron Python 0.9.1. I wonder why won't these run? fileBeforeSort = file("READ_ME_AND_SORT_ME.txt", "r") afterSort = sorted(int(line.rstrip('\n')) for line in fileBeforeSort) fileBeforeSort.close() IronPython tripped on the 2nd line, it said: SyntaxError: unexpected token for a

RE: [IronPython] Why won't these snippets run?

2005-09-18 Thread Martin Maly
Hi Ray, > Ray Djajadinata Wrote: > > fileBeforeSort = file("READ_ME_AND_SORT_ME.txt", "r") > afterSort = sorted(int(line.rstrip('\n')) for line in fileBeforeSort) > fileBeforeSort.close() > > IronPython tripped on the 2nd line, it said: > > SyntaxError: unexpected token for at > ReadAndSortAn