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 <>
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\\'> 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).
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: <>
2014-04-13 08:50:51loewislinkissue21202 messages
2014-04-13 08:50:50loewiscreate