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
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
[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
.
-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
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
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
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]
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
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).
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.
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
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
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
.
-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
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
15 matches
Mail list logo