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 ethan.furman
Recipients draghuram, eric.araujo, ethan.furman, mrabarnett, ncoghlan, pitrou, poke, rhettinger, steven.daprano
Date 2010-12-31.15:42:48
SpamBayes Score 0.0018652364
Marked as misclassified No
Message-id <4D1DFA03.4040700@stoneleaf.us>
In-reply-to <1293791928.3680.0.camel@localhost.localdomain>
Content
raise AttributeError from None

makes sense to me, and in a nice, short example like that I prefer it. 
In real code, however, I think

raise AttributeError.no_context("Field %s is not in table" % attr)

is going to be easier for the human to parse than

raise AttributeError("Field %s is not in table" % attr) from None
History
Date User Action Args
2010-12-31 15:42:51ethan.furmansetrecipients: + ethan.furman, rhettinger, ncoghlan, pitrou, draghuram, eric.araujo, mrabarnett, steven.daprano, poke
2010-12-31 15:42:48ethan.furmanlinkissue6210 messages
2010-12-31 15:42:48ethan.furmancreate