Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79a4d96

Browse files
mattwang44ken71301
andcommitted
Apply suggestions from code review
Co-authored-by: Payon <[email protected]>
1 parent d52f6df commit 79a4d96

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

c-api/mapping.po

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ msgid ""
4040
msgstr ""
4141
"如果物件有提供對映協定或支援切片 (slicing) 則回傳 ``1``,否則回傳 ``0``。請注"
4242
"意,對於具有 :meth:`~object.__getitem__` 方法的 Python 類別,它會回傳 ``1``,"
43-
"因為通常無法確定該類別支援什麼類型的鍵。這個函式總是成功的。"
43+
"因為通常無法確定該類別支援什麼類型的鍵。這個函式總會是成功的。"
4444

4545
#: ../../c-api/mapping.rst:25
4646
msgid ""
@@ -88,16 +88,16 @@ msgid ""
8888
"always succeeds."
8989
msgstr ""
9090
"如果對映物件具有鍵 *key* 則回傳 ``1``,否則回傳 ``0``。這相當於 Python 運算"
91-
"式 ``key in o``。這個函式總是成功的。"
91+
"式 ``key in o``。這個函式總會是成功的。"
9292

9393
#: ../../c-api/mapping.rst:63
9494
msgid ""
9595
"Exceptions which occur when this calls :meth:`~object.__getitem__` method "
9696
"are silently ignored. For proper error handling, use :c:func:"
9797
"`PyObject_GetItem()` instead."
9898
msgstr ""
99-
"呼叫 :meth:`~object.__getitem__` 方法時發生的例外將被默默忽略。為了適當地處理"
100-
"錯誤,請改用 :c:func:`PyObject_GetItem()`。"
99+
"當它呼叫 :meth:`~object.__getitem__` 方法時發生的例外將被默默忽略。為了適當地"
100+
"處理錯誤,請改用 :c:func:`PyObject_GetItem()`。"
101101

102102
#: ../../c-api/mapping.rst:70
103103
msgid ""
@@ -114,14 +114,15 @@ msgid ""
114114
"while creating the temporary :class:`str` object are silently ignored. For "
115115
"proper error handling, use :c:func:`PyMapping_GetItemString` instead."
116116
msgstr ""
117-
"呼叫 :meth:`~object.__getitem__` 方法或建立臨時 :class:`str` 物件時發生的例外"
118-
"將默默忽略。為了適當地處理錯誤,請改用 :c:func:`PyMapping_GetItemString`。"
117+
"當它呼叫 :meth:`~object.__getitem__` 方法或建立臨時 :class:`str` 物件時發生的"
118+
"例外將被默默忽略。為了適當地處理錯誤,請改用 :c:func:"
119+
"`PyMapping_GetItemString`。"
119120

120121
#: ../../c-api/mapping.rst:84
121122
msgid ""
122123
"On success, return a list of the keys in object *o*. On failure, return "
123124
"``NULL``."
124-
msgstr "成功時回傳包含物件 *o* 內之鍵的串列,失敗時回傳 ``NULL``。"
125+
msgstr "成功時回傳一個物件 *o* 內之鍵的串列,失敗時回傳 ``NULL``。"
125126

126127
#: ../../c-api/mapping.rst:87 ../../c-api/mapping.rst:96
127128
#: ../../c-api/mapping.rst:105

0 commit comments

Comments
 (0)