[issue41767] KeyError exception is more difficult to read due to quoting

2020-09-11 Thread Anthony Sottile
Change by Anthony Sottile : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41767] KeyError exception is more difficult to read due to quoting

2020-09-11 Thread Martin Panter
Martin Panter added the comment: Perhaps a duplicate of Issue 2651, closed because it was too hard to fix without breaking compatibility. -- nosy: +martin.panter superseder: -> Strings passed to KeyError do not round trip ___ Python tracker

[issue41767] KeyError exception is more difficult to read due to quoting

2020-09-11 Thread Anthony Sottile
New submission from Anthony Sottile : For example: >>> import pwd >>> pwd.getpwnam("test") Traceback (most recent call last): File "", line 1, in KeyError: "getpwnam(): name not found: 'test'" An improvement would be something which doesn't have the extra set of quotes such as: >>>