Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions library/stdtypes.po
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ msgstr ""
msgid ""
"A comparison between numbers of different types behaves as though the exact "
"values of those numbers were being compared. [2]_"
msgstr ""
msgstr "儘管數值之間的型別不同只要確切數值相同基本上比較就會成立 [2]_"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
msgstr "儘管數值之間的型別不同只要確切數值相同基本上比較就會成立 [2]_"
msgstr "不同型別的數值之間進行比較時,其行為就像是在比較這些數值的實際值 [2]_"


#: ../../library/stdtypes.rst:280
msgid ""
Expand Down Expand Up @@ -9318,7 +9318,7 @@ msgstr ""

#: ../../library/stdtypes.rst:6332
msgid "Integer string conversion length limitation"
msgstr ""
msgstr "整數字串轉換長度限制"

#: ../../library/stdtypes.rst:6334
msgid ""
Expand All @@ -9327,6 +9327,9 @@ msgid ""
"decimal or other non-power-of-two number bases. Hexadecimal, octal, and "
"binary conversions are unlimited. The limit can be configured."
msgstr ""
"CPython 針對在 :class:`int` 與 :class:`str` 之間轉換時設有一個全域限制,"
"用於降低DoS攻擊的風險。且這個限制只適用於十進位或非二進制的數值。"
"十六進位,八進位,還有二進位的轉換則沒有長度限制。此限制值可以被設定與調整。"
Comment on lines +9330 to +9332
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • DoS 應該翻譯,附註原文部分可以改放完整名稱
  • 原文 only 有斜體
  • non-power-of-two 是指「非 2 的次方」
Suggested change
"CPython 針對在 :class:`int` 與 :class:`str` 之間轉換時設有一個全域限制,"
"用於降低DoS攻擊的風險。且這個限制只適用於十進位或非二進制的數值"
"十六進位八進位,還有二進位的轉換則沒有長度限制。此限制值可以被設定與調整"
"CPython 針對在 :class:`int` 與 :class:`str` 之間轉換時設有一個全域限制,"
"用於降低阻斷服務 (DoS) 攻擊的風險。這個限制\\* 只\\* 適用於十進位其他非 2 的冪次進位的數值"
"十六進位八進位,還有二進位的轉換則沒有長度限制。此限制值可以被調整"


#: ../../library/stdtypes.rst:6339
msgid ""
Expand Down