8000 sync with cpython bc03bf42 · python/python-docs-zh-tw@0030559 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0030559

Browse files
sync with cpython bc03bf42
1 parent f1bc197 commit 0030559

File tree

8 files changed

+109
-133
lines changed

8 files changed

+109
-133
lines changed

c-api/unicode.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.10\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2022-10-06 00:23+0000\n"
12+
"POT-Creation-Date: 2022-10-07 00:27+0000\n"
1313
"PO-Revision-Date: 2018-05-23 14:08+0000\n"
1414
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -40,8 +40,8 @@ msgstr ""
4040

4141
#: ../../c-api/unicode.rst:20
4242
msgid ""
43-
":c:type:`Py_UNICODE*` and UTF-8 representations are created on demand and "
44-
"cached in the Unicode object. The :c:type:`Py_UNICODE*` representation is "
43+
":c:expr:`Py_UNICODE*` and UTF-8 representations are created on demand and "
44+
"cached in the Unicode object. The :c:expr:`Py_UNICODE*` representation is "
4545
"deprecated and inefficient."
4646
msgstr ""
4747

@@ -61,7 +61,7 @@ msgstr ""
6161
#: ../../c-api/unicode.rst:31
6262
msgid ""
6363
"\"legacy\" Unicode objects have been created through one of the deprecated "
64-
"APIs (typically :c:func:`PyUnicode_FromUnicode`) and only bear the :c:type:"
64+
"APIs (typically :c:func:`PyUnicode_FromUnicode`) and only bear the :c:expr:"
6565
"`Py_UNICODE*` representation; you will have to call :c:func:"
6666
"`PyUnicode_READY` on them before calling any other API."
6767
msgstr ""
@@ -242,7 +242,7 @@ msgid ""
242242
"The returned buffer is always terminated with an extra null code point. It "
243243
"may also contain embedded null code points, which would cause the string to "
244244
"be truncated when used in most C functions. The ``AS_DATA`` form casts the "
245-
"pointer to :c:type:`const char *`. The *o* argument has to be a Unicode "
245+
"pointer to :c:expr:`const char *`. The *o* argument has to be a Unicode "
246246
"object (not checked)."
247247
msgstr ""
248248

@@ -895,7 +895,7 @@ msgstr ""
895895
#: ../../c-api/unicode.rst:708
896896
msgid ""
897897
"Return a read-only pointer to the Unicode object's internal :c:type:"
898-
"`Py_UNICODE` buffer, or ``NULL`` on error. This will create the :c:type:"
898+
"`Py_UNICODE` buffer, or ``NULL`` on error. This will create the :c:expr:"
899899
"`Py_UNICODE*` representation of the object if it is not yet available. The "
900900
"buffer is always terminated with an extra null code point. Note that the "
901901
"resulting :c:type:`Py_UNICODE` string may also contain embedded null code "
@@ -927,7 +927,7 @@ msgstr ""
927927
msgid ""
928928
"Like :c:func:`PyUnicode_AsUnicode`, but also saves the :c:func:`Py_UNICODE` "
929929
"array length (excluding the extra null terminator) in *size*. Note that the "
930-
"resulting :c:type:`Py_UNICODE*` string may contain embedded null code "
930+
"resulting :c:expr:`Py_UNICODE*` string may contain embedded null code "
931931
"points, which would cause the string to be truncated when used in most C "
932932
"functions."
933933
msgstr ""

extending/newtypes.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-10-06 00:23+0000\n"
11+
"POT-Creation-Date: 2022-10-07 00:27+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:34+0000\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -200,15 +200,15 @@ msgid ""
200200
"Python supports two pairs of attribute handlers; a type that supports "
201201
"attributes only needs to implement the functions for one pair. The "
202202
"difference is that one pair takes the name of the attribute as a :c:expr:"
203-
"`char\\*`, while the other accepts a :c:type:`PyObject\\*`. Each type can "
204-
"use whichever pair makes more sense for the implementation's convenience. ::"
203+
"`char\\*`, while the other accepts a :c:expr:`PyObject*`. Each type can use "
204+
"whichever pair makes more sense for the implementation's convenience. ::"
205205
msgstr ""
206206

207207
#: ../../extending/newtypes.rst:220
208208
msgid ""
209209
"If accessing attributes of an object is always a simple operation (this will "
210210
"be explained shortly), there are generic implementations which can be used "
211-
"to provide the :c:type:`PyObject\\*` version of the attribute management "
211+
"to provide the :c:expr:`PyObject*` version of the attribute management "
212212
"functions. The actual need for type-specific attribute handlers almost "
213213
"completely disappeared starting with Python 2.2, though there are many "
214214
"examples which have not be 6D40 en updated to use some of the new generic "
@@ -357,7 +357,7 @@ msgstr ""
357357
msgid ""
358358
"For simplicity, only the :c:expr:`char\\*` version will be demonstrated "
359359
"here; the type of the name parameter is the only difference between the :c:"
360-
"expr:`char\\*` and :c:type:`PyObject\\*` flavors of the interface. This "
360+
"expr:`char\\*` and :c:expr:`PyObject*` flavors of the interface. This "
361361
"example effectively does the same thing as the generic example above, but "
362362
"does not use the generic support added in Python 2.2. It explains how the "
363363
"handler functions are called, so that if you do need to extend their "
@@ -575,7 +575,7 @@ msgstr ""
575575

576576
#: ../../extending/newtypes.rst:575
577577
msgid ""
578-
"Include a :c:type:`PyObject\\*` field in the C object structure dedicated to "
578+
"Include a :c:expr:`PyObject*` field in the C object structure dedicated to "
579579
"the weak reference mechanism. The object's constructor should leave it "
580580
"``NULL`` (which is automatic when using the default :c:member:`~PyTypeObject."
581581
"tp_alloc`)."

extending/newtypes_tutorial.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.10\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2022-04-06 00:13+0000\n"
8+
"POT-Creation-Date: 2022-10-07 00:27+0000\n"
99
"PO-Revision-Date: 2018-07-15 18:56+0800\n"
1010
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1111
"tw)\n"
@@ -35,7 +35,7 @@ msgstr ""
3535
#: ../../extending/newtypes_tutorial.rst:26
3636
msgid ""
3737
"The :term:`CPython` runtime sees all Python objects as variables of type :c:"
38-
"type:`PyObject\\*`, which serves as a \"base type\" for all Python objects. "
38+
"expr:`PyObject*`, which serves as a \"base type\" for all Python objects. "
3939
"The :c:type:`PyObject` structure itself only contains the object's :term:"
4040
"`reference count` and a pointer to the object's \"type object\". This is "
4141
"where the action is; the type object determines which (C) functions get "

library/io.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: 2022-03-04 18:37+0000\n"
10+
"POT-Creation-Date: 2022-10-07 00:27+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:04+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -349,7 +349,7 @@ msgid ""
349349
"The :class:`BufferedIOBase` ABC extends :class:`IOBase`. It deals with "
350350
"buffering on a raw binary stream (:class:`RawIOBase`). Its subclasses, :"
351351
"class:`BufferedWriter`, :class:`BufferedReader`, and :class:`BufferedRWPair` "
352-
"buffer raw binary streams that are readable, writable, and both readable and "
352+
"buffer raw binary streams that are writable, readable, and both readable and "
353353
"writable, respectively. :class:`BufferedRandom` provides a buffered "
354354
"interface to seekable streams. Another :class:`BufferedIOBase` subclass, :"
355355
"class:`BytesIO`, is a stream of in-memory bytes."

0 commit comments

Comments
 (0)
0