[issue2651] Strings passed to KeyError do not round trip

Antoine Pitrou report at bugs.python.org
Thu May 8 20:51:52 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Wouldn't it be nice to also store the offending key as a "key" attribute?
Writing key_error.key is a lot intuitive than key_error.args[0] (or is
it key_error.args[1] ? I've already forgotten :-)).

----------
nosy: +pitrou

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2651>
__________________________________


More information about the Python-bugs-list mailing list