Message376763
| Author | Anthony Sottile |
|---|---|
| Recipients | Anthony Sottile, Julian, amaury.forgeotdarc, bdoremus, belopolsky, eric.araujo, lukasz.langa, martin.panter, methane, pitrou, rharris, rhettinger, terry.reedy, vencabot_teppoo |
| Date | 2020-09-12.02:12:36 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1599876756.17.0.120603669486.issue2651@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
(I know this is old and closed but I've just run into the same thing with pwd.getpwnam in issue41767) KeyError: "getpwnam(): name not found: 'test'" would it be possible / make sense to extend `KeyError` with a named-only-argument which would preserve the raw string in this case? something like (yeah the name is probably not great, I haven't had time to think much about this) raise KeyError("getpwnam(): name not found 'test'", preserve_msg=True) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2020-09-12 02:12:36 | Anthony Sottile | set | recipients: + Anthony Sottile, rhettinger, terry.reedy, amaury.forgeotdarc, belopolsky, pitrou, rharris, eric.araujo, methane, vencabot_teppoo, lukasz.langa, Julian, martin.panter, bdoremus |
| 2020-09-12 02:12:36 | Anthony Sottile | set | messageid: <1599876756.17.0.120603669486.issue2651@roundup.psfhosted.org> |
| 2020-09-12 02:12:36 | Anthony Sottile | link | issue2651 messages |
| 2020-09-12 02:12:36 | Anthony Sottile | create | |