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 <1304788788.72.0.636738247663.issue12022@psf.upfronthosting.co.za>
In-reply-to
Content
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
sys.__exit__
>>> AttributeError: 'module' object has no attribute '__exit__'
History
Date User Action Args
2011-05-07 17:19:48dholthsetrecipients: + dholth, benjamin.peterson
2011-05-07 17:19:48dholthsetmessageid: <1304788788.72.0.636738247663.issue12022@psf.upfronthosting.co.za>
2011-05-07 17:19:47dholthlinkissue12022 messages
2011-05-07 17:19:47dholthcreate