[Python-ideas] Function arguments in tracebacks

MRAB python at mrabarnett.plus.com
Wed Dec 28 16:23:57 EST 2016


On 2016-12-28 21:01, Emanuel Landeholm wrote:
> I think an argument could be made for including the str() of parameters
> of primitive types and with small values (for some value of "primitive"
> and "small", can of worms here...). I'm thinking numbers and short
> strings. Maybe a flag to control this behaviour? My gut feeling is that
> this would be a hack with lots of corner cases and surprises so it would
> probably not be very helpful in the general case.
>
Don't you mean the repr or ascii because you'll want 'foo' to print as:

'foo'

and not as:

foo



More information about the Python-ideas mailing list