This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | amaury.forgeotdarc |
|---|---|
| Recipients | amaury.forgeotdarc, rharris |
| Date | 2008年04月21日.00:14:57 |
| SpamBayes Score | 0.13482213 |
| Marked as misclassified | No |
| Message-id | <1208736903.01.0.0882638679972.issue2651@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Attached patch changes KeyError: when it has two arguments, they are
formatted with "%s: %r". Otherwise the base repr is called, and this
allows the round trip.
Standard objects (dict, set, UserDict, namedtuple, defaultdict, weak
dictionaries) now raise something like KeyError("not in dict", key).
At least one place in the stdlib relied on the key being the first
argument to KeyError() (in ConfigParser.py)
I don't know if this incompatibility will break much code. At least we
can say that the current behavior is not documented. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年04月21日 00:15:04 | amaury.forgeotdarc | set | spambayes_score: 0.134822 -> 0.13482213 recipients: + amaury.forgeotdarc, rharris |
| 2008年04月21日 00:15:03 | amaury.forgeotdarc | set | spambayes_score: 0.134822 -> 0.134822 messageid: <1208736903.01.0.0882638679972.issue2651@psf.upfronthosting.co.za> |
| 2008年04月21日 00:15:01 | amaury.forgeotdarc | link | issue2651 messages |
| 2008年04月21日 00:15:00 | amaury.forgeotdarc | create | |