Skip to content

Commit 72a78e4

Browse files
committed
Improve doc strings
1 parent ce2af87 commit 72a78e4

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Objects/clinic/dictobject.c.h

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/dictobject.c

+12-12
Original file line numberDiff line numberDiff line change
@@ -3126,12 +3126,12 @@ _PyDict_MergeEx(PyObject *a, PyObject *b, int override)
31263126
/*[clinic input]
31273127
dict.copy
31283128
3129-
D.copy() -> a shallow copy of D
3129+
Returns a shallow copy of D.
31303130
[clinic start generated code]*/
31313131

31323132
static PyObject *
31333133
dict_copy_impl(PyDictObject *self)
3134-
/*[clinic end generated code: output=ffb782cf970a5c39 input=b96949d603dc505c]*/
3134+
/*[clinic end generated code: output=ffb782cf970a5c39 input=6d9903c1b6362e32]*/
31353135
{
31363136
return PyDict_Copy((PyObject *)self);
31373137
}
@@ -3508,12 +3508,12 @@ dict_setdefault_impl(PyDictObject *self, PyObject *key,
35083508
/*[clinic input]
35093509
dict.clear
35103510
3511-
D.clear() -> None. Remove all items from D.
3511+
Removes all items.
35123512
[clinic start generated code]*/
35133513

35143514
static PyObject *
35153515
dict_clear_impl(PyDictObject *self)
3516-
/*[clinic end generated code: output=5139a830df00830a input=31e16ad16e56f4dc]*/
3516+
/*[clinic end generated code: output=5139a830df00830a input=1824e4e555dfaf79]*/
35173517
{
35183518
PyDict_Clear((PyObject *)self);
35193519
Py_RETURN_NONE;
@@ -3706,12 +3706,12 @@ _PyDict_KeysSize(PyDictKeysObject *keys)
37063706
/*[clinic input]
37073707
dict.__sizeof__
37083708
3709-
D.__sizeof__() -> size of D in memory, in bytes
3709+
Returns size of D in memory, in bytes.
37103710
[clinic start generated code]*/
37113711

37123712
static PyObject *
37133713
dict___sizeof___impl(PyDictObject *self)
3714-
/*[clinic end generated code: output=44279379b3824bda input=bcde0197a346f7ce]*/
3714+
/*[clinic end generated code: output=44279379b3824bda input=33b3550475672efd]*/
37153715
{
37163716
return PyLong_FromSsize_t(_PyDict_SizeOf(self));
37173717
}
@@ -5247,12 +5247,12 @@ PyTypeObject PyDictKeys_Type = {
52475247
/*[clinic input]
52485248
dict.keys
52495249
5250-
D.keys() -> a set-like object providing a view on D's keys
5250+
Returns a set-like object providing a view on D's keys.
52515251
[clinic start generated code]*/
52525252

52535253
static PyObject *
52545254
dict_keys_impl(PyDictObject *self)
5255-
/*[clinic end generated code: output=aac2830c62990358 input=4a20806094eaaed1]*/
5255+
/*[clinic end generated code: output=aac2830c62990358 input=26448b0710052252]*/
52565256
{
52575257
return _PyDictView_New((PyObject *)self, &PyDictKeys_Type);
52585258
}
@@ -5359,12 +5359,12 @@ PyTypeObject PyDictItems_Type = {
53595359
/*[clinic input]
53605360
dict.items
53615361
5362-
D.items() -> a set-like object providing a view on D's items
5362+
Returns a set-like object providing a view on D's items.
53635363
[clinic start generated code]*/
53645364

53655365
static PyObject *
53665366
dict_items_impl(PyDictObject *self)
5367-
/*[clinic end generated code: output=88c7db7150c7909a input=7c47bcbd09b31e59]*/
5367+
/*[clinic end generated code: output=88c7db7150c7909a input=21ee5e4c8ead76c4]*/
53685368
{
53695369
return _PyDictView_New((PyObject *)self, &PyDictItems_Type);
53705370
}
@@ -5449,12 +5449,12 @@ PyTypeObject PyDictValues_Type = {
54495449
/*[clinic input]
54505450
dict.values
54515451
5452-
D.values() -> an object providing a view on D's values
5452+
Returns an object providing a view on D's values.
54535453
[clinic start generated code]*/
54545454

54555455
static PyObject *
54565456
dict_values_impl(PyDictObject *self)
5457-
/*[clinic end generated code: output=ce9f2e9e8a959dd4 input=004353e8ab5d1aa9]*/
5457+
/*[clinic end generated code: output=ce9f2e9e8a959dd4 input=53354b69fc077e0d]*/
54585458
{
54595459
return _PyDictView_New((PyObject *)self, &PyDictValues_Type);
54605460
}

0 commit comments

Comments
 (0)