[New-bugs-announce] [issue18163] Add a 'key' attribute to KeyError

Brett Cannon report at bugs.python.org
Fri Jun 7 22:51:56 CEST 2013


New submission from Brett Cannon:

KeyError could grow a 'key' attribute for the key that triggered the exception. Since keys are expected to be immutable (in order to be hashable) there is no GC issue to worry about.

----------
components: Interpreter Core
messages: 190778
nosy: brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: Add a 'key' attribute to KeyError
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18163>
_______________________________________


More information about the New-bugs-announce mailing list