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

Skip to content

Commit 0610163

Browse files
committed
[po] auto sync bot
1 parent 5cf2a0a commit 0610163

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

reference/datamodel.po

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,6 +2996,9 @@ msgid ""
29962996
":exc:`!OverflowError` by truth value testing, an object must define a "
29972997
":meth:`__bool__` method."
29982998
msgstr ""
2999+
"在 CPython 中,要求长度最大为 :attr:`sys.maxsize`。如果长度大于 :attr:`!sys.maxsize` 则某些特性 "
3000+
"(例如 :func:`len`) 可能会引发 :exc:`OverflowError`。要通过真值检测来防止引发 "
3001+
":exc:`!OverflowError`,对象必须定义 :meth:`__bool__` 方法。"
29993002

30003003
#: ../../reference/datamodel.rst:2142
30013004
msgid ""
@@ -3004,20 +3007,22 @@ msgid ""
30043007
"length). The length must be an integer ``>=`` 0. This method is purely an "
30053008
"optimization and is never required for correctness."
30063009
msgstr ""
3010+
"调用此方法以实现 :func:`operator.length_hint`。应该返回对象长度的估计值(可能大于或小于实际长度)。此长度应为一个 "
3011+
"``>=`` 的整数。此方法纯粹是为了优化性能,并不要求正确无误。"
30073012

30083013
#: ../../reference/datamodel.rst:2152
30093014
msgid ""
30103015
"Slicing is done exclusively with the following three methods. A call like "
30113016
"::"
3012-
msgstr ""
3017+
msgstr "切片是通过下述三个专门方法完成的。以下形式的调用 ::"
30133018

30143019
#: ../../reference/datamodel.rst:2156
30153020
msgid "is translated to ::"
3016-
msgstr ""
3021+
msgstr "会为转写为 ::"
30173022

30183023
#: ../../reference/datamodel.rst:2160
30193024
msgid "and so forth. Missing slice items are always filled in with ``None``."
3020-
msgstr ""
3025+
msgstr "其他形式以此类推。略去的切片项总是以 ``None`` 补全。"
30213026

30223027
#: ../../reference/datamodel.rst:2167
30233028
msgid ""

0 commit comments

Comments
 (0)