[Python-ideas] Shorthand syntax for get/set/delattr (was Re: Dict-like object with property access)
p.f.moore at gmail.com
Mon Feb 6 00:47:15 CET 2012
On 5 February 2012 21:30, Simon Sapin <simon.sapin at kozea.fr> wrote:
> By the way, the proxy should also turn AttributeError into KeyError, for
> consistency with other Mapping types.
Clearly. And arguably, this is a good case for the new "raise KeyError
from None" form to suppress exception chaining...
More information about the Python-ideas