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

Commit0c52e8c

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython f5e29f42
1 parent3e72b5c commit0c52e8c

File tree

6 files changed

+69
-55
lines changed

6 files changed

+69
-55
lines changed

‎c-api/complex.po

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.11\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2023-05-09 00:15+0000\n"
10+
"POT-Creation-Date:2023-06-30 15:31+0000\n"
1111
"PO-Revision-Date:2015-12-09 17:51+0000\n"
1212
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -148,16 +148,17 @@ msgstr ""
148148

149149
#:../../c-api/complex.rst:130
150150
msgid""
151-
"If *op* is not a Python complex number object but has a :meth:`__complex__`"
152-
"method, this method will first be called to convert *op* to a Python complex "
153-
"number object. If``__complex__()`` is not defined thenit falls back to :"
154-
"meth:`__float__`. If``__float__()`` is notdefined then it falls back to :"
155-
"meth:`__index__`. Upon failure, this method returns ``-1.0`` as a real "
156-
"value."
151+
"If *op* is not a Python complex number object but has a :meth:`~object."
152+
"__complex__`method, this method will first be called to convert *op* to a "
153+
"Python complexnumber object. If:meth:`!__complex__` is not defined then "
154+
"it falls back to :meth:`~object.__float__`. If:meth:`!__float__` is not "
155+
"defined then it falls back to :meth:`~object.__index__`. Upon failure, this "
156+
"method returns ``-1.0`` as a realvalue."
157157
msgstr""
158158

159159
#:../../c-api/complex.rst:137
160-
msgid"Use :meth:`__index__` if available."
160+
#,fuzzy
161+
msgid"Use :meth:`~object.__index__` if available."
161162
msgstr"如果可用則會使用 :meth:`__index__`。"
162163

163164
#:../../c-api/complex.rst:8

‎c-api/float.po

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version:Python 3.11\n"
1111
"Report-Msgid-Bugs-To:\n"
12-
"POT-Creation-Date:2023-05-09 00:15+0000\n"
12+
"POT-Creation-Date:2023-06-30 15:31+0000\n"
1313
"PO-Revision-Date:2017-09-22 18:26+0000\n"
1414
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
1515
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -61,15 +61,15 @@ msgstr ""
6161
#:../../c-api/float.rst:47
6262
msgid""
6363
"Return a C :c:expr:`double` representation of the contents of *pyfloat*. If "
64-
"*pyfloat* is not a Python floating point object but has a :meth:`__float__`"
65-
"method, this method will first be called to convert *pyfloat* into a float. "
66-
"If``__float__()`` is not defined then it falls back to :meth:`__index__`."
67-
"This method returns ``-1.0`` upon failure, so oneshould call :c:func:"
68-
"`PyErr_Occurred` to check for errors."
64+
"*pyfloat* is not a Python floating point object but has a :meth:`~object."
65+
"__float__`method, this method will first be called to convert *pyfloat* "
66+
"into a float.If:meth:`!__float__` is not defined then it falls back to :"
67+
"meth:`~object.__index__`.This method returns ``-1.0`` upon failure, so one "
68+
"should call :c:func:`PyErr_Occurred` to check for errors."
6969
msgstr""
7070

7171
#:../../c-api/float.rst:54
72-
msgid"Use :meth:`__index__` if available."
72+
msgid"Use :meth:`~object.__index__` if available."
7373
msgstr""
7474

7575
#:../../c-api/float.rst:60

‎c-api/long.po

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.11\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2023-05-09 00:15+0000\n"
11+
"POT-Creation-Date:2023-06-30 15:31+0000\n"
1212
"PO-Revision-Date:2018-05-23 14:06+0000\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -140,8 +140,8 @@ msgstr ""
140140
#:../../c-api/long.rst:122../../c-api/long.rst:140
141141
msgid""
142142
"Return a C :c:expr:`long` representation of *obj*. If *obj* is not an "
143-
"instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method "
144-
"(if present) to convert it to a :c:type:`PyLongObject`."
143+
"instance of :c:type:`PyLongObject`, first call its :meth:`~object.__index__` "
144+
"method(if present) to convert it to a :c:type:`PyLongObject`."
145145
msgstr""
146146

147147
#:../../c-api/long.rst:126
@@ -157,12 +157,12 @@ msgstr ""
157157

158158
#:../../c-api/long.rst:131../../c-api/long.rst:151../../c-api/long.rst:172
159159
#:../../c-api/long.rst:194../../c-api/long.rst:278../../c-api/long.rst:298
160-
msgid"Use :meth:`__index__` if available."
160+
msgid"Use :meth:`~object.__index__` if available."
161161
msgstr""
162162

163163
#:../../c-api/long.rst:134../../c-api/long.rst:154../../c-api/long.rst:175
164164
#:../../c-api/long.rst:197../../c-api/long.rst:281../../c-api/long.rst:301
165-
msgid"This function will no longer use :meth:`__int__`."
165+
msgid"This function will no longer use :meth:`~object.__int__`."
166166
msgstr""
167167

168168
#:../../c-api/long.rst:144
@@ -176,8 +176,8 @@ msgstr ""
176176
#:../../c-api/long.rst:163../../c-api/long.rst:181
177177
msgid""
178178
"Return a C :c:expr:`long long` representation of *obj*. If *obj* is not an "
179-
"instance of :c:type:`PyLongObject`, first call its :meth:`__index__` method "
180-
"(if present) to convert it to a :c:type:`PyLongObject`."
179+
"instance of :c:type:`PyLongObject`, first call its :meth:`~object.__index__` "
180+
"method(if present) to convert it to a :c:type:`PyLongObject`."
181181
msgstr""
182182

183183
#:../../c-api/long.rst:167
@@ -268,8 +268,8 @@ msgstr ""
268268
#:../../c-api/long.rst:268
269269
msgid""
270270
"Return a C :c:expr:`unsigned long` representation of *obj*. If *obj* is not "
271-
"an instance of :c:type:`PyLongObject`, first call its :meth:`__index__`"
272-
"method (if present) to convert it to a :c:type:`PyLongObject`."
271+
"an instance of :c:type:`PyLongObject`, first call its :meth:`~object."
272+
"__index__`method (if present) to convert it to a :c:type:`PyLongObject`."
273273
msgstr""
274274

275275
#:../../c-api/long.rst:272
@@ -287,8 +287,8 @@ msgstr ""
287287
#:../../c-api/long.rst:287
288288
msgid""
289289
"Return a C :c:expr:`unsigned long long` representation of *obj*. If *obj* "
290-
"is not an instance of :c:type:`PyLongObject`, first call its :meth:"
291-
"`__index__` method (if present) to convert it to a :c:type:`PyLongObject`."
290+
"is not an instance of :c:type:`PyLongObject`, first call its :meth:`~object."
291+
"__index__` method (if present) to convert it to a :c:type:`PyLongObject`."
292292
msgstr""
293293

294294
#:../../c-api/long.rst:292

‎library/cmath.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.11\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2023-05-09 00:15+0000\n"
10+
"POT-Creation-Date:2023-06-30 15:31+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:40+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -27,10 +27,10 @@ msgid ""
2727
"This module provides access to mathematical functions for complex numbers. "
2828
"The functions in this module accept integers, floating-point numbers or "
2929
"complex numbers as arguments. They will also accept any Python object that "
30-
"has either a :meth:`__complex__` or a :meth:`__float__` method: these "
31-
"methods are used to convert the object to a complex or floating-point "
32-
"number, respectively, and the function is then applied to the result of the "
33-
"conversion."
30+
"has either a :meth:`~object.__complex__` or a :meth:`~object.__float__` "
31+
"method: thesemethods are used to convert the object to a complex or "
32+
"floating-pointnumber, respectively, and the function is then applied to the "
33+
"result of theconversion."
3434
msgstr""
3535

3636
#:../../library/cmath.rst:18

‎library/functions.po

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version:Python 3.11\n"
1111
"Report-Msgid-Bugs-To:\n"
12-
"POT-Creation-Date:2023-05-14 00:16+0000\n"
12+
"POT-Creation-Date:2023-06-30 15:31+0000\n"
1313
"PO-Revision-Date:2023-01-04 14:53+0800\n"
1414
"Last-Translator:Phil Lin <linooohon@gmail.com>\n"
1515
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -466,10 +466,11 @@ msgstr ""
466466
"函式生成的字串和 Python 2 的 :func:`repr` 回傳的結果相似。"
467467

468468
#:../../library/functions.rst:123
469+
#,fuzzy
469470
msgid""
470471
"Convert an integer number to a binary string prefixed with\"0b\". The "
471472
"result is a valid Python expression. If *x* is not a Python :class:`int` "
472-
"object, it has to define an :meth:`__index__` method that returns an "
473+
"object, it has to define an :meth:`~object.__index__` method that returns an "
473474
"integer. Some examples:"
474475
msgstr""
475476
"將一個整數轉變為一個前綴為\"0b\" 的二進位制字串。結果是一個有效的 Python 運"
@@ -754,8 +755,8 @@ msgid ""
754755
msgstr""
755756
"*mode* 引數指定了編譯程式碼時必須用的模式。如果 *source* 是一系列的陳述式,可"
756757
"以是 ``'exec'``;如果是單一運算式,可以是 ``'eval'``;如果是單個互動式陳述"
757-
"式,可以是 ``'single'`` (在最後一種情況下,如果運算式執行結果不是 ``None``"
758-
"會被印出來)。"
758+
"式,可以是 ``'single'`` (在最後一種情況下,如果運算式執行結果不是 ``None`` "
759+
"則會被印出來)。"
759760

760761
#:../../library/functions.rst:310
761762
msgid""
@@ -889,12 +890,15 @@ msgstr ""
889890
"果兩個引數都省略,則回傳 ``0j``。"
890891

891892
#:../../library/functions.rst:385
893+
#,fuzzy
892894
msgid""
893895
"For a general Python object ``x``, ``complex(x)`` delegates to ``x."
894-
"__complex__()``. If``__complex__()`` is not defined then itfalls back to :"
895-
"meth:`__float__`. If``__float__()`` is notdefined then it falls back to :"
896-
"meth:`__index__`."
896+
"__complex__()``. If:meth:`~object.__complex__` is not defined then it "
897+
"falls back to :meth:`~object.__float__`. If:meth:`!__float__` is not "
898+
"defined then it falls back to :meth:`~object.__index__`."
897899
msgstr""
900+
"對於一般的 Python 物件 ``x``,``float(x)`` 指派給 ``x.__float__()``。如果未定"
901+
"義 ``__float__()`` 則使用 :meth:`__index__`。"
898902

899903
#:../../library/functions.rst:392
900904
msgid""
@@ -917,8 +921,8 @@ msgstr "可以使用底線將程式碼文字中的數字進行分組。"
917921

918922
#:../../library/functions.rst:402
919923
msgid""
920-
"Falls back to :meth:`__index__` if :meth:`__complex__` and :meth:`__float__`"
921-
"are not defined."
924+
"Falls back to :meth:`~object.__index__` if :meth:`~object.__complex__` and :"
925+
"meth:`~object.__float__`are not defined."
922926
msgstr""
923927

924928
#:../../library/functions.rst:409
@@ -1318,10 +1322,11 @@ msgstr ""
13181322
"浮點數。如果引數在 Python 浮點精度範圍外,則會觸發 :exc:`OverflowError`。"
13191323

13201324
#:../../library/functions.rst:682
1325+
#,fuzzy
13211326
msgid""
13221327
"For a general Python object ``x``, ``float(x)`` delegates to ``x."
1323-
"__float__()``. If``__float__()`` is not defined then it fallsback to :"
1324-
"meth:`__index__`."
1328+
"__float__()``. If:meth:`~object.__float__` is not defined then it falls "
1329+
"back to :meth:`~object.__index__`."
13251330
msgstr""
13261331
"對於一般的 Python 物件 ``x``,``float(x)`` 指派給 ``x.__float__()``。如果未定"
13271332
"義 ``__float__()`` 則使用 :meth:`__index__`。"
@@ -1342,7 +1347,9 @@ msgid "The float type is described in :ref:`typesnumeric`."
13421347
msgstr":ref:`typesnumeric` 描述了浮點數型別。"
13431348

13441349
#:../../library/functions.rst:709
1345-
msgid"Falls back to :meth:`__index__` if :meth:`__float__` is not defined."
1350+
msgid""
1351+
"Falls back to :meth:`~object.__index__` if :meth:`~object.__float__` is not "
1352+
"defined."
13461353
msgstr""
13471354

13481355
#:../../library/functions.rst:719
@@ -1503,10 +1510,11 @@ msgstr ""
15031510
"加全面和一致。"
15041511

15051512
#:../../library/functions.rst:822
1513+
#,fuzzy
15061514
msgid""
15071515
"Convert an integer number to a lowercase hexadecimal string prefixed with "
15081516
"\"0x\". If *x* is not a Python :class:`int` object, it has to define an :"
1509-
"meth:`__index__` method that returns an integer. Some examples:"
1517+
"meth:`~object.__index__` method that returns an integer. Some examples:"
15101518
msgstr""
15111519
"將整數轉換為以\"0x\" 為前綴的小寫十六進位制字串。如果 *x* 不是 Python :"
15121520
"class:`int` 物件,則必須定義一個 :meth:`__index__` method 並且回傳一個整數。"
@@ -1609,12 +1617,14 @@ msgstr ""
16091617
"result``。"
16101618

16111619
#:../../library/functions.rst:894
1620+
#,fuzzy
16121621
msgid""
16131622
"Return an integer object constructed from a number or string *x*, or return "
1614-
"``0`` if no arguments are given. If *x* defines :meth:`__int__`, ``int(x)`` "
1615-
"returns ``x.__int__()``. If *x* defines :meth:`__index__`, it returns ``x."
1616-
"__index__()``. If *x* defines :meth:`__trunc__`, it returns ``x."
1617-
"__trunc__()``. For floating point numbers, this truncates towards zero."
1623+
"``0`` if no arguments are given. If *x* defines :meth:`~object.__int__`, "
1624+
"``int(x)`` returns ``x.__int__()``. If *x* defines :meth:`~object."
1625+
"__index__`, it returns ``x.__index__()``. If *x* defines :meth:`~object."
1626+
"__trunc__`, it returns ``x.__trunc__()``. For floating point numbers, this "
1627+
"truncates towards zero."
16181628
msgstr""
16191629
"回傳一個使用數字或字串 *x* 建構的整數物件,或者在沒有引數時回傳 ``0``。如果 "
16201630
"*x* 定義了 :meth:`__int__`,``int(x)`` 回傳 ``x.__int__()``。如果 *x* 定義"
@@ -1673,11 +1683,13 @@ msgstr ""
16731683
"<object.__index__>`。"
16741684

16751685
#:../../library/functions.rst:933
1676-
msgid"Falls back to :meth:`__index__` if :meth:`__int__` is not defined."
1686+
msgid""
1687+
"Falls back to :meth:`~object.__index__` if :meth:`~object.__int__` is not "
1688+
"defined."
16771689
msgstr""
16781690

16791691
#:../../library/functions.rst:936
1680-
msgid"The delegation to :meth:`__trunc__` is deprecated."
1692+
msgid"The delegation to :meth:`~object.__trunc__` is deprecated."
16811693
msgstr""
16821694

16831695
#:../../library/functions.rst:939
@@ -1929,10 +1941,11 @@ msgstr ""
19291941
"給 :class:`object` class 的實例。"
19301942

19311943
#:../../library/functions.rst:1138
1944+
#,fuzzy
19321945
msgid""
19331946
"Convert an integer number to an octal string prefixed with\"0o\". The "
19341947
"result is a valid Python expression. If *x* is not a Python :class:`int` "
1935-
"object, it has to define an :meth:`__index__` method that returns an "
1948+
"object, it has to define an :meth:`~object.__index__` method that returns an "
19361949
"integer. For example:"
19371950
msgstr""
19381951
"將一個整數轉變為一個前綴為\"0o\" 的八進位制字串。回傳結果是一個有效的 "

‎library/struct.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.11\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2023-05-09 00:15+0000\n"
10+
"POT-Creation-Date:2023-06-30 15:31+0000\n"
1111
"PO-Revision-Date:2018-05-23 16:11+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -595,12 +595,12 @@ msgstr ""
595595
#:../../library/struct.rst:268
596596
msgid""
597597
"When attempting to pack a non-integer using any of the integer conversion "
598-
"codes, if the non-integer has a :meth:`__index__` method then that method is "
599-
"called to convert the argument to an integer before packing."
598+
"codes, if the non-integer has a :meth:`~object.__index__` method then that "
599+
"method iscalled to convert the argument to an integer before packing."
600600
msgstr""
601601

602602
#:../../library/struct.rst:272
603-
msgid"Added use of the :meth:`__index__` method for non-integers."
603+
msgid"Added use of the :meth:`~object.__index__` method for non-integers."
604604
msgstr""
605605

606606
#:../../library/struct.rst:276

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp