At 01:33 PM 10/7/03 +1300, Greg Ewing wrote: >While we're on the subject of error messages, I'd like to >point out another one that could be improved. Often one >sees things like > > TypeError: foo() takes exactly 1 argument (2 given) > >In the case where foo() is a method of some class, and there >are various versions of foo() defined in various superclasses, >it's sometimes hard to tell exactly *which* foo it was trying >to call. It would be much more useful if the module and >class names were included in the error message, e.g. > > TypeError: MyStuff.SomeClass.foo() takes exactly 1 argument (2 >given) AFAICT, this would at least require a compiler change, and a change to the layout of code objects, so that a code object would know its "dotted name". >The same goes for function names quoted in the traceback. Don't tracebacks give line number and file?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4