Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit72a78e4

Browse files
committed
Improve doc strings
1 parentce2af87 commit72a78e4

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

‎Objects/clinic/dictobject.c.h‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Objects/dictobject.c‎

Lines changed: 12 additions & 12 deletions
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+
Returnsa shallow copy of D.
31303130
[clinic start generated code]*/
31313131

31323132
staticPyObject*
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
returnPyDict_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. Removeall items from D.
3511+
Removesall items.
35123512
[clinic start generated code]*/
35133513

35143514
staticPyObject*
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+
Returnssize of D in memory, in bytes.
37103710
[clinic start generated code]*/
37113711

37123712
staticPyObject*
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
returnPyLong_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+
Returnsa set-like object providing a view on D's keys.
52515251
[clinic start generated code]*/
52525252

52535253
staticPyObject*
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+
Returnsa set-like object providing a view on D's items.
53635363
[clinic start generated code]*/
53645364

53655365
staticPyObject*
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+
Returnsan object providing a view on D's values.
54535453
[clinic start generated code]*/
54545454

54555455
staticPyObject*
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)

[8]ページ先頭

©2009-2025 Movatter.jp