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 scoder
Recipients benjamin.peterson, eric.araujo, ncoghlan, pitrou, scoder, terry.reedy
Date 2013-02-11.07:44:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
1) that's a regex test, so it just looks for the text. I only extended it to include the object it's supposed to test for. It's not actually related to my changes, but I considered it the right thing to do. I used "42.*is not" in order to allow for alternative spellings like "'42' is not...".

2) "raise ... from None" is the official way to explicitly drop the exception context from a newly raised exception. Otherwise, you'd get two exceptions in this case: a TypeError (as main exception) and an AttributeError (as its context), which I do not consider helpful here as it bloats the output for an otherwise simple error. For 99% of the use cases, it won't matter which attribute was missing.
Date User Action Args
2013-02-11 07:44:27scodersetrecipients: + scoder, terry.reedy, ncoghlan, pitrou, benjamin.peterson, eric.araujo
2013-02-11 07:44:27scodersetmessageid: <>
2013-02-11 07:44:27scoderlinkissue17159 messages
2013-02-11 07:44:27scodercreate