[Python-bugs-list] Python 1.6a1 - Poor diagnostic (PR#278)
pinard@iro.umontreal.ca
pinard@iro.umontreal.ca
Thu, 6 Apr 2000 11:09:24 -0400 (EDT)
Hello. This might be seen as a limitation, rather than a bug. This is
not specific to 1.6a1, as 1.5.2 shows the same.
Executing a Python script yields:
Traceback (most recent call last):
File "./to-html", line 26, in ?
import data, htmlpage, localweb, registry
SyntaxError: non-keyword arg after keyword arg (line 26)
There is such an error in file `../lib/htmlpage.py' here, so the diagnostic
is proper. However, a mere `(line 26)' does not hint about which of the four
imported sources has the error. As a way around the poor diagnostic, you
might suggest that I avoid bundling many imports on one line. This would
help of course, but I still think Python could do better, here.
--
François Pinard http://www.iro.umontreal.ca/~pinard