[Python-ideas] Make traceback messages aware of line continuation
Nick Coghlan
ncoghlan at gmail.com
Wed May 1 02:38:11 CEST 2013
On Wed, May 1, 2013 at 12:41 AM, Felipe Cruz <felipecruz at loogica.net> wrote:
> +1
>
> It would be great to have this feature.
As Terry explained on the tracker issue, printing the entire
expression is hugely problematic, as it means that long definition
displays (e.g. for dictionaries or lists) will show a huge amount of
noise, rather than the subexpression that actually triggered the
exception. It is far better to break up the code to avoid long lines
in the first place, even if that involves creating "redundant"
assignment statements for subexpressions.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list