Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6809084c
Commit
6809084c
authored
Mar 02, 2014
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20786: Fix signatures for dict.__delitem__ and property.__delete__
parent
c6991d11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
Lib/test/test_inspect.py
Lib/test/test_inspect.py
+5
-0
Misc/NEWS
Misc/NEWS
+6
-1
Objects/typeobject.c
Objects/typeobject.c
+2
-2
No files found.
Lib/test/test_inspect.py
View file @
6809084c
...
...
@@ -1764,6 +1764,11 @@ class TestSignatureObject(unittest.TestCase):
__call__
=
type
test_callable
(
ThisWorksNow
())
# Regression test for issue #20786
test_unbound_method
(
dict
.
__delitem__
)
test_unbound_method
(
property
.
__delete__
)
@
cpython_only
@
unittest
.
skipIf
(
MISSING_C_DOCSTRINGS
,
"Signature information for builtins requires docstrings"
)
...
...
Misc/NEWS
View file @
6809084c
...
...
@@ -4,9 +4,14 @@ Python News
What
's New in Python 3.4.0 release candidate 3?
===============================================
Release date: 2014-03-09
Core and Builtins
-----------------
- Issue #20786: Fix signatures for dict.__delitem__ and
property.__delete__ builtins.
Build
-----
...
...
Objects/typeobject.c
View file @
6809084c
...
...
@@ -6189,7 +6189,7 @@ static slotdef slotdefs[] = {
"__set__($self, instance, value, /)
\n
--
\n\n
Set an attribute of instance to value."
),
TPSLOT
(
"__delete__"
,
tp_descr_set
,
slot_tp_descr_set
,
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
,
"__init__($self, /, *args, **kwargs)
\n
--
\n\n
"
"Initialize self. See help(type(self)) for accurate signature."
,
...
...
@@ -6286,7 +6286,7 @@ static slotdef slotdefs[] = {
"__setitem__($self, key, value, /)
\n
--
\n\n
Set self[key] to value."
),
MPSLOT
(
"__delitem__"
,
mp_ass_subscript
,
slot_mp_ass_subscript
,
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
,
"__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