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 dholth
Recipients benjamin.peterson, dholth
Date 2011-05-07.17:19:47
SpamBayes Score 0.0037686082
Marked as misclassified No
Message-id <>
Python should explain AttributeError in the same way when it's raised by the interpreter. The with: statement below should raise the second AttributeError, not the first.

import transaction
with transaction: pass
>>> AttributeError: __exit__

import sys
>>> AttributeError: 'module' object has no attribute '__exit__'
Date User Action Args
2011-05-07 17:19:48dholthsetrecipients: + dholth, benjamin.peterson
2011-05-07 17:19:48dholthsetmessageid: <>
2011-05-07 17:19:47dholthlinkissue12022 messages
2011-05-07 17:19:47dholthcreate