Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
056e2654
Kaydet (Commit)
056e2654
authored
Mar 02, 2014
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20786: Fix signatures for dict.__delitem__ and property.__delete__
üst
6c6596ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
test_inspect.py
Lib/test/test_inspect.py
+5
-0
NEWS
Misc/NEWS
+3
-0
typeobject.c
Objects/typeobject.c
+2
-2
No files found.
Lib/test/test_inspect.py
Dosyayı görüntüle @
056e2654
...
@@ -1764,6 +1764,11 @@ class TestSignatureObject(unittest.TestCase):
...
@@ -1764,6 +1764,11 @@ class TestSignatureObject(unittest.TestCase):
__call__
=
type
__call__
=
type
test_callable
(
ThisWorksNow
())
test_callable
(
ThisWorksNow
())
# Regression test for issue #20786
test_unbound_method
(
dict
.
__delitem__
)
test_unbound_method
(
property
.
__delete__
)
@cpython_only
@cpython_only
@unittest.skipIf
(
MISSING_C_DOCSTRINGS
,
@unittest.skipIf
(
MISSING_C_DOCSTRINGS
,
"Signature information for builtins requires docstrings"
)
"Signature information for builtins requires docstrings"
)
...
...
Misc/NEWS
Dosyayı görüntüle @
056e2654
...
@@ -14,6 +14,9 @@ Core and Builtins
...
@@ -14,6 +14,9 @@ Core and Builtins
- Issue #20637: Key-sharing now also works for instance dictionaries of
- Issue #20637: Key-sharing now also works for instance dictionaries of
subclasses. Patch by Peter Ingebretson.
subclasses. Patch by Peter Ingebretson.
- Issue #20786: Fix signatures for dict.__delitem__ and
property.__delete__ builtins.
Library
Library
-------
-------
...
...
Objects/typeobject.c
Dosyayı görüntüle @
056e2654
...
@@ -6192,7 +6192,7 @@ static slotdef slotdefs[] = {
...
@@ -6192,7 +6192,7 @@ static slotdef slotdefs[] = {
"__set__($self, instance, value, /)
\n
--
\n\n
Set an attribute of instance to value."
),
"__set__($self, instance, value, /)
\n
--
\n\n
Set an attribute of instance to value."
),
TPSLOT
(
"__delete__"
,
tp_descr_set
,
slot_tp_descr_set
,
TPSLOT
(
"__delete__"
,
tp_descr_set
,
slot_tp_descr_set
,
wrap_descr_delete
,
wrap_descr_delete
,
"__delete__(instance, /)
\n
--
\n\n
Delete an attribute of instance."
),
"__delete__(
$self,
instance, /)
\n
--
\n\n
Delete an attribute of instance."
),
FLSLOT
(
"__init__"
,
tp_init
,
slot_tp_init
,
(
wrapperfunc
)
wrap_init
,
FLSLOT
(
"__init__"
,
tp_init
,
slot_tp_init
,
(
wrapperfunc
)
wrap_init
,
"__init__($self, /, *args, **kwargs)
\n
--
\n\n
"
"__init__($self, /, *args, **kwargs)
\n
--
\n\n
"
"Initialize self. See help(type(self)) for accurate signature."
,
"Initialize self. See help(type(self)) for accurate signature."
,
...
@@ -6289,7 +6289,7 @@ static slotdef slotdefs[] = {
...
@@ -6289,7 +6289,7 @@ static slotdef slotdefs[] = {
"__setitem__($self, key, value, /)
\n
--
\n\n
Set self[key] to value."
),
"__setitem__($self, key, value, /)
\n
--
\n\n
Set self[key] to value."
),
MPSLOT
(
"__delitem__"
,
mp_ass_subscript
,
slot_mp_ass_subscript
,
MPSLOT
(
"__delitem__"
,
mp_ass_subscript
,
slot_mp_ass_subscript
,
wrap_delitem
,
wrap_delitem
,
"__delitem__(
key
)
\n
--
\n\n
Delete self[key]."
),
"__delitem__(
$self, key, /
)
\n
--
\n\n
Delete self[key]."
),
SQSLOT
(
"__len__"
,
sq_length
,
slot_sq_length
,
wrap_lenfunc
,
SQSLOT
(
"__len__"
,
sq_length
,
slot_sq_length
,
wrap_lenfunc
,
"__len__($self, /)
\n
--
\n\n
Return len(self)."
),
"__len__($self, /)
\n
--
\n\n
Return len(self)."
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment