8000 Sync with CPython 3.10 (#271) · python/python-docs-zh-tw@76ccb98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 76ccb98

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.10 (#271)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
1 parent 78164eb commit 76ccb98

38 files changed

+1976
-1896
lines changed

c-api/bytearray.po

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
10+
"POT-Creation-Date: 2022-04-03 00:14+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-"
@@ -59,43 +59,43 @@ msgid ""
5959
"`buffer protocol <bufferobjects>`."
6060
msgstr ""
6161

62-
#: ../../c-api/bytearray.rst:50
62+
#: ../../c-api/bytearray.rst:48
6363
msgid ""
6464
"Create a new bytearray object from *string* and its length, *len*. On "
6565
"failure, ``NULL`` is returned."
6666
msgstr ""
6767

68-
#: ../../c-api/bytearray.rst:56
68+
#: ../../c-api/bytearray.rst:54
6969
msgid ""
7070
"Concat bytearrays *a* and *b* and return a new bytearray with the result."
7171
msgstr ""
7272

73-
#: ../../c-api/bytearray.rst:61
73+
#: ../../c-api/bytearray.rst:59
7474
msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer."
7575
msgstr ""
7676

77-
#: ../../c-api/bytearray.rst:66
77+
#: ../../c-api/bytearray.rst:64
7878
msgid ""
7979
"Return the contents of *bytearray* as a char array after checking for a "
8080
"``NULL`` pointer. The returned array always has an extra null byte appended."
8181
msgstr ""
8282

83-
#: ../../c-api/bytearray.rst:73
83+
#: ../../c-api/bytearray.rst:71
8484
msgid "Resize the internal buffer of *bytearray* to *len*."
8585
msgstr ""
8686

87-
#: ../../c-api/bytearray.rst:76
87+
#: ../../c-api/bytearray.rst:74
8888
msgid "Macros"
8989
msgstr ""
9090

91-
#: ../../c-api/bytearray.rst:78
91+
#: ../../c-api/bytearray.rst:76
9292
msgid "These macros trade safety for speed and they don't check pointers."
9393
msgstr ""
9494

95-
#: ../../c-api/bytearray.rst:82
95+
#: ../../c-api/bytearray.rst:80
9696
msgid "Macro version of :c:func:`PyByteArray_AsString`."
9797
msgstr ""
9898

99-
#: ../../c-api/bytearray.rst:87
99+
#: ../../c-api/bytearray.rst:85
100100
msgid "Macro version of :c:func:`PyByteArray_Size`."
101101
msgstr ""

c-api/bytes.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
10+
"POT-Creation-Date: 2022-04-03 00:14+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:04+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -25,7 +25,7 @@ msgstr ""
2525
#: ../../c-api/bytes.rst:8
2626
msgid ""
2727
"These functions raise :exc:`TypeError` when expecting a bytes parameter and "
28-
"are called with a non-bytes parameter."
28+
"called with a non-bytes parameter."
2929
msgstr ""
3030

3131
#: ../../c-api/bytes.rst:16

c-api/call.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-10-07 00:10+0000\n"
11+
"POT-Creation-Date: 2022-04-03 00:14+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -53,8 +53,8 @@ msgstr ""
5353

5454
#: ../../c-api/call.rst:29
5555
msgid ""
56-
"To call an object, use :c:func:`PyObject_Call` or other :ref:`call API <capi-"
57-
"call>`."
56+
"To call an object, use :c:func:`PyObject_Call` or another :ref:`call API "
57+
"<capi-call>`."
5858
msgstr ""
5959

6060
#: ../../c-api/call.rst:36

c-api/exceptions.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2022-02-24 00:12+0000\n"
11+
"POT-Creation-Date: 2022-04-03 00:14+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:05+0000\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -300,7 +300,7 @@ msgstr ""
300300

301301
#: ../../c-api/exceptions.rst:284
302302
msgid ""
303-
"Like :c:func:`PyErr_SyntaxLocationEx`, but the col_offset parameter is "
303+
"Like :c:func:`PyErr_SyntaxLocationEx`, but the *col_offset* parameter is "
304304
"omitted."
305305
msgstr ""
306306

@@ -362,7 +362,7 @@ msgstr ""
362362
msgid ""
363363
"Issue a warning message with explicit control over all warning attributes. "
364364
"This is a straightforward wrapper around the Python function :func:`warnings."
365-
"warn_explicit`, see there for more information. The *module* and *registry* "
365+
"warn_explicit`; see there for more information. The *module* and *registry* "
366366
"arguments may be set to ``NULL`` to get the default effect described there."
367367
msgstr ""
368368

c-api/init.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
10+
"POT-Creation-Date: 2022-04-03 00:14+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:06+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1962,7 +1962,7 @@ msgstr ""
19621962

19631963
#: ../../c-api/init.rst:1728
19641964
msgid ""
1965-
"A freed key becomes a dangling pointer, you should reset the key to `NULL`."
1965+
"A freed key becomes a dangling pointer. You should reset the key to `NULL`."
19661966
msgstr ""
19671967

19681968
#: ../../c-api/init.rst:1733

c-api/init_config.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2022-01-22 00:09+0000\n"
11+
"POT-Creation-Date: 2022-04-03 00:14+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -37,16 +37,16 @@ msgstr ""
3737
msgid ""
3838
"The :ref:`Python Configuration <init-python-config>` can be used to build a "
3939
"customized Python which behaves as the regular Python. For example, "
40-
"environments variables and command line arguments are used to configure "
40+
"environment variables and command line arguments are used to configure "
4141
"Python."
4242
msgstr ""
4343

4444
#: ../../c-api/init_config.rst:22
4545
msgid ""
4646
"The :ref:`Isolated Configuration <init-isolated-conf>` can be used to embed "
4747
"Python into an application. It isolates Python from the system. For example, "
48-
"environments variables are ignored, the LC_CTYPE locale is left unchanged "
49-
"and no signal handler is registered."
48+
"environment variables are ignored, the LC_CTYPE locale is left unchanged and "
49+
"no signal handler is registered."
5050
msgstr ""
5151

5252
#: ../../c-api/init_config.rst:27
@@ -1574,7 +1574,7 @@ msgstr ""
15741574

15751575
#: ../../c-api/init_config.rst:1290
15761576
msgid ""
1577-
"This configuration ignores global configuration variables, environments "
1577+
"This configuration ignores global configuration variables, environment "
15781578
"variables, command line arguments (:c:member:`PyConfig.argv` is not parsed) "
15791579
"and user site directory. The C standard streams (ex: ``stdout``) and the "
15801580
"LC_CTYPE locale are left unchanged. Signal handlers are not installed."
@@ -1842,7 +1842,7 @@ msgstr ""
18421842
#: ../../c-api/init_config.rst:1434
18431843
msgid ""
18441844
"This section is a private provisional API introducing multi-phase "
1845-
"initialization, the core feature of the :pep:`432`:"
1845+
"initialization, the core feature of :pep:`432`:"
18461846
msgstr ""
18471847

18481848
#: ../../c-api/init_config.rst:1437

c-api/iter.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-11-23 00:09+0000\n"
10+
"POT-Creation-Date: 2022-04-03 00:14+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-"
@@ -34,8 +34,8 @@ msgstr ""
3434

3535
#: ../../c-api/iter.rst:17
3636
msgid ""
37-
"Returns non-zero if the object 'obj' provides :class:`AsyncIterator` "
38-
"protocols, and ``0`` otherwise. This function always succeeds."
37+
"Return non-zero if the object *o* provides the :class:`AsyncIterator` "
38+
"protocol, and ``0`` otherwise. This function always succeeds."
3939
msgstr ""
4040

4141
#: ../../c-api/iter.rst:24

c-api/long.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
11+
"POT-Creation-Date: 2022-04-03 00:14+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-"
@@ -65,7 +65,7 @@ msgstr ""
6565
#: ../../c-api/long.rst:43
6666
msgid ""
6767
"The current implementation keeps an array of integer objects for all "
68-
"integers between ``-5`` and ``256``, when you create an int in that range "
68+
"integers between ``-5`` and ``256``. When you create an int in that range "
6969
"you actually just get back a reference to the existing object."
7070
msgstr ""
7171

c-api/mapping.po

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2020-06-20 18:08+0800\n"
10+
"POT-Creation-Date: 2022-04-03 00:14+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -30,10 +30,11 @@ msgstr ""
3030

3131
#: ../../c-api/mapping.rst:14
3232
msgid ""
33-
"Return ``1`` if the object provides mapping protocol or supports slicing, "
34-
"and ``0`` otherwise. Note that it returns ``1`` for Python classes with a :"
35-
"meth:`__getitem__` method since in general case it is impossible to "
36-
"determine what type of keys it supports. This function always succeeds."
33+
"Return ``1`` if the object provides the mapping protocol or supports "
34+
"slicing, and ``0`` otherwise. Note that it returns ``1`` for Python classes "
35+
"with a :meth:`__getitem__` method, since in general it is impossible to "
36+
"determine what type of keys the class supports. This function always "
37+
"succeeds."
3738
msgstr ""
3839

3940
#: ../../c-api/mapping.rst:25

c-api/memory.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
11+
"POT-Creation-Date: 2022-04-08 00:15+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-"
@@ -390,7 +390,7 @@ msgstr ""
390390
#: ../../c-api/memory.rst:308
391391
msgid ""
392392
"There is no guarantee that the memory returned by these allocators can be "
393-
"successfully casted to a Python object when intercepting the allocating "
393+
"successfully cast to a Python object when intercepting the allocating "
394394
"functions in this domain by the methods described in the :ref:`Customize "
395395
"Memory Allocators <customize-memory-allocators>` section."
396396
msgstr ""
@@ -553,8 +553,8 @@ msgstr ""
553553

554554
#: ../../c-api/memory.rst:405
555555
msgid ""
556-
"Structure used to describe a memory block allocator. The structure has four "
557-
"fields:"
556+
"Structure used to describe a memory block allocator. The structure has the "
557+
"following fields:"
558558
msgstr ""
559559

560560
#: ../../c-api/memory.rst:409 ../../c-api/memory.rst:626

c-api/method.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
11+
"POT-Creation-Date: 2022-04-03 00:14+0000\n"
1212
"PO-Revision-Date: 2022-01-24 22:22+0800\n"
1313
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -53,7 +53,7 @@ msgstr ""
5353

5454
#: ../../c-api/method.rst:30
5555
msgid ""
56-
"Return a new instance method object, with *func* being any callable object "
56+
"Return a new instance method object, with *func* being any callable object. "
5757
"*func* is the function that will be called when the instance method is "
5858
"called."
5959
msgstr ""

0 commit comments

Comments
 (0)
0