Python Error Messages
Tim Peters
tim_one at email.msn.com
Tue Sep 14 22:55:58 EDT 1999
[Tim, explains that source file lines longer than 1000 chars screw
up Python tracebacks]
[François Pinard]
> Seriously, couldn't we consider this as an implementation bug? If
> fgets did not return a whole line, the line count should not get
> incremented.
I'm afraid I gave such a dry account of it that it came off looking like a
bit of conventional wisdom Python programmers "are just supposed to know".
Sorry about that -- it was a surprise to me too, and my explanation was
derived from having tracked down the cause just minutes before posting.
That is, I agree it's a bug, and already entered a bug report and submitted
a patch to repair it. A fix should appear in the CVS tree "soon". Since
nobody reported this before, and tens of thousands of Python programmers
must have stared at hundreds of tracebacks each, I believe we can safely
conclude that the danger of running without the fix would be hard to
underestimate <wink>.
in-the-meantime-just-set-word-wrap-in-.py-files-to-999-ly y'rs - tim
More information about the Python-list
mailing list