[IronPython] Expression printing in interactive mode

Seo Sanghyeon sanxiyn at gmail.com
Wed Apr 29 20:19:27 CEST 2009

2009/4/30 Dino Viehland <dinov at microsoft.com>:
> Looking at the code thought I'm guessing this is totally broken on
> Unix because in ReadStatement we append a newline, with a
> wonderful comment there:
>                // Note that this does not use Environment.NewLine because some languages (eg. Python) only
>                // recognize \n as a line terminator.
>                b.Append("\n");
> So this just happens to do the right thing on Windows due to the
> mismatches between the new lines being used.

Ah, mystery solved. So it worked by accident on systems where NewLine != \n...

Seo Sanghyeon

More information about the Ironpython-users mailing list