[issue5760] __getitem__ error message hard to understand

2009-04-18 Thread Georg Brandl
Georg Brandl added the comment: I concur. I changed "unsubscriptable" to "not subscriptable" in r71696. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5760] __getitem__ error message hard to understand

2009-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I said on the python-ideas discussion, which definitely did *not* come to consensus, I disagree with this suggestion. To repeat and expand on what I said there: 1. 'unsubscriptable' could instead be changed to 'not subscriptable'. 2. 'subscription' *is* th

[issue5760] __getitem__ error message hard to understand

2009-04-14 Thread Chris Rebert
New submission from Chris Rebert : Prompted by http://mail.python.org/pipermail/python-ideas/2009-April/004048.html The current error message issued when trying to use the get item ([]) operator on an object that does not define __getitem__ can be hard to understand: >>> class A(object): pass .