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 loewis
Recipients brett.cannon, docs@python, ezio.melotti, flox, loewis, madison.may, ncoghlan, ned.deily
Date 2014-04-13.08:50:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397379051.13.0.493358577177.issue21202@psf.upfronthosting.co.za>
In-reply-to
Content
I think the AttributeError message should improve, and special-case certain common types, in particular modules. E.g. it could read

    AttributeError: module 'io' has no attribute 'BufferedIOBase'

or even

   AttributeError: <module 'io' from 'C:\\Program Files\\Python34\\lib\\io.py'> has no attribute 'BufferedIOBase'

IIUC, the first version would already have helped the OP, and the second version would have been dead-clear (except that it is a little verbose).
History
Date User Action Args
2014-04-13 08:50:51loewissetrecipients: + loewis, brett.cannon, ncoghlan, ned.deily, ezio.melotti, flox, docs@python, madison.may
2014-04-13 08:50:51loewissetmessageid: <1397379051.13.0.493358577177.issue21202@psf.upfronthosting.co.za>
2014-04-13 08:50:51loewislinkissue21202 messages
2014-04-13 08:50:50loewiscreate