]> granicus.if.org Git - python/commit
PyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few
authorGuido van Rossum <guido@python.org>
Sat, 24 Nov 2001 18:24:47 +0000 (18:24 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 24 Nov 2001 18:24:47 +0000 (18:24 +0000)
commit64585f6afb33ea907a22a365b4fdbec155e3da55
tree9e0a109ee0bc1b1a7177a006b49717059d97ddf2
parentbf7c52c233485b0d95c3a41cb5ae9b580c4469c8
PyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few
confusing error messages.  If a new-style class has no sequence or
mapping behavior, attempting to use the indexing notation with a
non-integer key would complain that the sequence index must be an
integer, rather than complaining that the operation is not supported.
Objects/abstract.c