__getattribute__'s error is not available in __getattr__
Chris Angelico
rosuav at gmail.com
Wed May 3 01:27:34 EDT 2017
On Wed, May 3, 2017 at 3:05 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
>> I was going to hardcode AttributeError, which would have made it more
>> obvious and simpler, but then a single-purpose decorator (and if you
>> do that, why not just wrap your code in try/except manually?).
>> Obviously for production it needs a codstring...
>
>
> Indeed? I heard about them! Seems they're going to drive cod pieces out of
> style. ;)
I know, right? Never mind about a herring, try cutting down a tree
with a string of cod!
It even looks like a saw...
http://eastbournecharterfishing.com/images/cod-success.jpg
Apparently my fingers think that this belongs inside a function.
ChrisA
More information about the Python-list
mailing list