diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-03-02 17:25:27 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-03-02 17:25:27 (GMT) |
commit | 056e2654911b404538d1169f34a576b26bde2ca0 (patch) | |
tree | f142584aec1a705687b9d9873231d78f0ce0c4af /Objects | |
parent | 6c6596ec52256f3b98475f83f4a7e476094b55f9 (diff) | |
download | cpython-056e2654911b404538d1169f34a576b26bde2ca0.zip cpython-056e2654911b404538d1169f34a576b26bde2ca0.tar.gz cpython-056e2654911b404538d1169f34a576b26bde2ca0.tar.bz2 |
Issue #20786: Fix signatures for dict.__delitem__ and property.__delete__
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 5a41387..df8f351 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -6192,7 +6192,7 @@ static slotdef slotdefs[] = { "__set__($self, instance, value, /)\n--\n\nSet an attribute of instance to value."), TPSLOT("__delete__", tp_descr_set, slot_tp_descr_set, wrap_descr_delete, - "__delete__(instance, /)\n--\n\nDelete an attribute of instance."), + "__delete__($self, instance, /)\n--\n\nDelete an attribute of instance."), FLSLOT("__init__", tp_init, slot_tp_init, (wrapperfunc)wrap_init, "__init__($self, /, *args, **kwargs)\n--\n\n" "Initialize self. See help(type(self)) for accurate signature.", @@ -6289,7 +6289,7 @@ static slotdef slotdefs[] = { "__setitem__($self, key, value, /)\n--\n\nSet self[key] to value."), MPSLOT("__delitem__", mp_ass_subscript, slot_mp_ass_subscript, wrap_delitem, - "__delitem__(key)\n--\n\nDelete self[key]."), + "__delitem__($self, key, /)\n--\n\nDelete self[key]."), SQSLOT("__len__", sq_length, slot_sq_length, wrap_lenfunc, "__len__($self, /)\n--\n\nReturn len(self)."), |