Unhelpful error message

Jon Ribbens jon+usenet at unequivocal.eu
Tue Jun 6 14:46:14 EDT 2017


On 2017-06-06, Thomas Nyberg <tomuxiong at gmx.com> wrote:
> My changes feel a bit hacky. I wanted to just drop a straight repr() in,
> but I didn't want to change the code too much since I assume the string
> formatting is already there for a reason (e.g. "%.200s").

Just change the '%.200s' to '%.200R' and it should work. The '.200'
isn't necessary to avoid buffer-overflow or anything, but an error
message of unlimited length is probably a good thing to avoid anyway ;-)



More information about the Python-list mailing list