python coding contest
Tim Peters
tim.peters at gmail.com
Wed Dec 28 11:02:39 EST 2005
[Bengt Richter]
> ...
> [23:28] C:\pywk\clp\seven\pycontest_01>wc -lc seven_seg.py
> 2 136 seven_seg.py
>
> 2 lines, 136 chars including unix-style lineseps (is that cheating on windows?)
Na. Most native Windows apps (including native Windows Python) don't
care whether \n or \r\n in used as the line terminator in text files.
This is because the platform C library changes \r\n to \n on input of
a text-mode file, and leaves \n alone: the difference is literally
invisible to most apps.
More information about the Python-list
mailing list