Why not just show the out-of-range index?
Gabriel Genellina
gagsl-py at yahoo.com.ar
Thu Dec 7 00:13:50 EST 2006
At Thursday 7/12/2006 01:17, OKB (not okblacke) wrote:
> So my conclusion from this is: is there a reason that every error
>message of the form "expected foo" or "this object cannot be frotzed"
>cannot be changed to something like "expected foo but found bar" or
>"this FooType object cannot be frotzed"?
Some arguments from my head:
- because error messages should be short
- because error messages are not debugging tools (better use unit
tests to avoid most common errors)
- because it's a lot of work to actually obtain such information in
each posible case, and sometimes, it may not be posible.
- because none of the core developers has interest on it
- because nobody else cares to submit a patch
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Python-list
mailing list