Skip to content

Commit e588a9c

Browse files
committed
More doc string improvements
1 parent 68a5d6c commit e588a9c

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Objects/clinic/dictobject.c.h

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

Objects/dictobject.c

+8-8
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-
Returns a shallow copy of D.
3129+
Returns a shallow copy of the dict.
31303130
[clinic start generated code]*/
31313131

31323132
static PyObject *
31333133
dict_copy_impl(PyDictObject *self)
3134-
/*[clinic end generated code: output=ffb782cf970a5c39 input=6d9903c1b6362e32]*/
3134+
/*[clinic end generated code: output=ffb782cf970a5c39 input=c3478619cd5ae21d]*/
31353135
{
31363136
return PyDict_Copy((PyObject *)self);
31373137
}
@@ -3706,12 +3706,12 @@ _PyDict_KeysSize(PyDictKeysObject *keys)
37063706
/*[clinic input]
37073707
dict.__sizeof__
37083708
3709-
Returns size of D in memory, in bytes.
3709+
Returns size of the dict 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=33b3550475672efd]*/
3714+
/*[clinic end generated code: output=44279379b3824bda input=4390a7fef5801970]*/
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-
Returns a set-like object providing a view on D's keys.
5250+
Returns a set-like object providing a view on the dict'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=26448b0710052252]*/
5255+
/*[clinic end generated code: output=aac2830c62990358 input=7f7942e4dbbc4cdf]*/
52565256
{
52575257
return _PyDictView_New((PyObject *)self, &PyDictKeys_Type);
52585258
}
@@ -5449,12 +5449,12 @@ PyTypeObject PyDictValues_Type = {
54495449
/*[clinic input]
54505450
dict.values
54515451
5452-
Returns an object providing a view on D's values.
5452+
Returns an object providing a view on the dict'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=53354b69fc077e0d]*/
5457+
/*[clinic end generated code: output=ce9f2e9e8a959dd4 input=ccd5c09c261cd554]*/
54585458
{
54595459
return _PyDictView_New((PyObject *)self, &PyDictValues_Type);
54605460
}

0 commit comments

Comments
 (0)