[issue1244] Error on 'raise' does not show correct line number and Traceback message

Alexander Shirokov report at bugs.python.org
Mon Oct 8 09:22:32 CEST 2007


Alexander Shirokov added the comment:

Dear Georg,

Thank you for reply. Sorry, I thought it was a real bug.

Best Regards,
Alex

On Mon, 8 Oct 2007, Georg Brandl wrote:

>
> Georg Brandl added the comment:
>
> The raise statement without any arguments re-raises the last raised
> exception, complete with traceback, see
> http://docs.python.org/dev/reference/simple_stmts.html#the-raise-statement.
>
> Therefore your usage of the raise statement is incorrect; you should
> always use
>
> raise SomeException("some message")
>
> ----------
> nosy: +georg.brandl
> resolution:  -> invalid
> status: open -> closed
>
> __________________________________
> Tracker <report at bugs.python.org>
> <http://bugs.python.org/issue1244>
> __________________________________
>

--

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1244>
__________________________________


More information about the Python-bugs-list mailing list