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 Anthony Sottile
Recipients Anthony Sottile, rhettinger, serhiy.storchaka
Date 2018-03-19.20:00:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521489619.88.0.467229070634.issue31550@psf.upfronthosting.co.za>
In-reply-to
Content
I think the main concern here is ease in portability coupled with the incorrectness of the current message (pointed out in https://bugs.python.org/issue31550#msg302738)

For instance it was consistent in 2.7.1, but not later on in the 2.7.x tree.  *And* it's different than python3 (for no good reason?)

The message is misleading as well, it's not looking for __getitem__ on the instance but on the type.
History
Date User Action Args
2018-03-19 20:00:19Anthony Sottilesetrecipients: + Anthony Sottile, rhettinger, serhiy.storchaka
2018-03-19 20:00:19Anthony Sottilesetmessageid: <1521489619.88.0.467229070634.issue31550@psf.upfronthosting.co.za>
2018-03-19 20:00:19Anthony Sottilelinkissue31550 messages
2018-03-19 20:00:19Anthony Sottilecreate