Re: can error messages be improved or can they be overridden ?

2009-03-15 Thread Stef Mientki
thanks RDM, I finally had a case where I really needed it, so it tried, works perfect, except the marked lines should be indented 1 more. cheers, Stef rdmur...@bitdance.com wrote: andrew cooke and...@acooke.org wrote: rdmur...@bitdance.com wrote: [...] (You know, I really ought to

Re: can error messages be improved or can they be overridden ?

2009-03-15 Thread andrew cooke
rdmur...@bitdance.com wrote: andrew cooke and...@acooke.org wrote: rdmur...@bitdance.com wrote: [...] (You know, I really ought to revisit that routine and make it part of my standard development toolbox.) please post it OK. I dug it up, cut out the stuff that was specific to the

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread Stef Mientki
[mailto:stef.mien...@gmail.com] Sent: Sunday, February 22, 2009 15:43 To: python-list@python.org Subject: can error messages be improved or can they be overridden ? hello, I often get an error message like this self.Brick.Par [ self.EP[2] ]['FileName'] = filename IndexError: list index out of range Now

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread Chris
. -Original Message- From: Stef Mientki [mailto:stef.mien...@gmail.com] Sent: Sunday, February 22, 2009 15:43 To: python-l...@python.org Subject: can error messages be improved or can they be overridden ? hello, I often get an error message like this     self.Brick.Par [ self.EP

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread rdmurray
Stef Mientki stef.mien...@gmail.com wrote: thanks Ron, but I was looking for a more general solution, in which I don't change the program itself, and where the error messages (in general) become more informative than it is by default. [snip] -Original Message- From: Stef

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread andrew cooke
rdmur...@bitdance.com wrote: [...] (You know, I really ought to revisit that routine and make it part of my standard development toolbox.) please post it andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread Stef Mientki
rdmur...@bitdance.com wrote: Stef Mientki stef.mien...@gmail.com wrote: thanks Ron, but I was looking for a more general solution, in which I don't change the program itself, and where the error messages (in general) become more informative than it is by default. [snip]

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread Terry Reedy
Stef Mientki wrote: thanks Ron, but I was looking for a more general solution, in which I don't change the program itself, and where the error messages (in general) become more informative than it is by default. Improving error messages is an ongoing project. I submitted feature request

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread Benjamin Kaplan
On Mon, Feb 23, 2009 at 1:37 PM, Stef Mientki stef.mien...@gmail.comwrote: rdmur...@bitdance.com wrote: FYI, top posts are much harder to read and to reply to than if you edit the message to which you are replying and add your new content interleaved or at the bottom (as I have done).

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread Gabriel Genellina
En Mon, 23 Feb 2009 15:54:03 -0200, rdmur...@bitdance.com escribió: Stef Mientki stef.mien...@gmail.com wrote: but I was looking for a more general solution, in which I don't change the program itself, and where the error messages (in general) become more informative than it is by default.

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread python
Gabriel, Have you seen the cgitb module? Despite its name, it's a general purpose module. http://docs.python.org/library/cgitb.html import cgitb cgitb.enable(format=txt) snipped My vote for tip of the week, perhaps even month. I'm not part of this thread, but your post is a great

Re: can error messages be improved or can they be overridden ?

2009-02-23 Thread rdmurray
andrew cooke and...@acooke.org wrote: rdmur...@bitdance.com wrote: [...] (You know, I really ought to revisit that routine and make it part of my standard development toolbox.) please post it OK. I dug it up, cut out the stuff that was specific to the application, freshened it up a

can error messages be improved or can they be overridden ?

2009-02-22 Thread Stef Mientki
hello, I often get an error message like this self.Brick.Par [ self.EP[2] ]['FileName'] = filename IndexError: list index out of range Now it would be very welcome, if the error message specified which index is out of range, in this case e.g., - specifying the length of self.EP - specifying

RE: can error messages be improved or can they be overridden ?

2009-02-22 Thread Barak, Ron
. -Original Message- From: Stef Mientki [mailto:stef.mien...@gmail.com] Sent: Sunday, February 22, 2009 15:43 To: python-list@python.org Subject: can error messages be improved or can they be overridden ? hello, I often get an error message like this self.Brick.Par

Re: can error messages be improved or can they be overridden ?

2009-02-22 Thread Steve Holden
messages be improved or can they be overridden ? hello, I often get an error message like this self.Brick.Par [ self.EP[2] ]['FileName'] = filename IndexError: list index out of range Now it would be very welcome, if the error message specified which index is out of range, in this case