| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,8 @@ msgid "" | |||
| 8 | 8 | msgstr "" | |
| 9 | 9 | "Project-Id-Version: Python 3.10\n" | |
| 10 | 10 | "Report-Msgid-Bugs-To: \n" | |
| 11 | - "POT-Creation-Date: 2022-06-11 14:46+0800\n" | ||
| 12 | - "PO-Revision-Date: 2022-06-12 14:46+0800\n" | ||
| 11 | + "POT-Creation-Date: 2022-10-06 00:23+0000\n" | ||
| 12 | + "PO-Revision-Date: 2022-10-16 03:20+0800\n" | ||
| 13 | 13 | "Last-Translator: Matt Wang <mattwag44@gmail.com>\n" | |
| 14 | 14 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | |
| 15 | 15 | "tw)\n" | |
@@ -18,7 +18,7 @@ msgstr "" | |||
| 18 | 18 | "Content-Type: text/plain; charset=UTF-8\n" | |
| 19 | 19 | "Content-Transfer-Encoding: 8bit\n" | |
| 20 | 20 | "Plural-Forms: nplurals=1; plural=0;\n" | |
| 21 | - "X-Generator: Poedit 3.1\n" | ||
| 21 | + "X-Generator: Poedit 3.1.1\n" | ||
| 22 | 22 | ||
| 23 | 23 | #: ../../c-api/call.rst:6 | |
| 24 | 24 | msgid "Call Protocol" | |
@@ -525,10 +525,10 @@ msgstr "" | |||
| 525 | 525 | ||
| 526 | 526 | #: ../../c-api/call.rst:278 | |
| 527 | 527 | msgid "" | |
| 528 | - "Note that if you only pass :c:type:`PyObject *` args, :c:func:" | ||
| 528 | + "Note that if you only pass :c:expr:`PyObject *` args, :c:func:" | ||
| 529 | 529 | "`PyObject_CallFunctionObjArgs` is a faster alternative." | |
| 530 | 530 | msgstr "" | |
| 531 | - "注意,如果你只傳入 :c:type:`PyObject *` 引數,則 :c:func:" | ||
| 531 | + "注意,如果你只傳入 :c:expr:`PyObject *` 引數,則 :c:func:" | ||
| 532 | 532 | "`PyObject_CallFunctionObjArgs` 是另一個更快速的選擇。" | |
| 533 | 533 | ||
| 534 | 534 | #: ../../c-api/call.rst:281 | |
@@ -556,10 +556,10 @@ msgstr "這等價於 Python 運算式 ``obj.name(arg1, arg2, ...)``。" | |||
| 556 | 556 | ||
| 557 | 557 | #: ../../c-api/call.rst:299 | |
| 558 | 558 | msgid "" | |
| 559 | - "Note that if you only pass :c:type:`PyObject *` args, :c:func:" | ||
| 559 | + "Note that if you only pass :c:expr:`PyObject *` args, :c:func:" | ||
| 560 | 560 | "`PyObject_CallMethodObjArgs` is a faster alternative." | |
| 561 | 561 | msgstr "" | |
| 562 | - "注意,如果你只傳入 :c:type:`PyObject *` 引數,則 :c:func:" | ||
| 562 | + "注意,如果你只傳入 :c:expr:`PyObject *` 引數,則 :c:func:" | ||
| 563 | 563 | "`PyObject_CallMethodObjArgs` 是另一個更快速的選擇。" | |
| 564 | 564 | ||
| 565 | 565 | #: ../../c-api/call.rst:302 | |
@@ -568,11 +568,11 @@ msgstr "*name* 和 *format* 的型別已從 ``char *`` 更改。" | |||
| 568 | 568 | ||
| 569 | 569 | #: ../../c-api/call.rst:308 | |
| 570 | 570 | msgid "" | |
| 571 | - "Call a callable Python object *callable*, with a variable number of :c:type:" | ||
| 571 | + "Call a callable Python object *callable*, with a variable number of :c:expr:" | ||
| 572 | 572 | "`PyObject *` arguments. The arguments are provided as a variable number of " | |
| 573 | 573 | "parameters followed by *NULL*." | |
| 574 | 574 | msgstr "" | |
| 575 | - "呼叫一個可呼叫的 Python 物件 *callable*,附帶數量可變的 :c:type:`PyObject *` " | ||
| 575 | + "呼叫一個可呼叫的 Python 物件 *callable*,附帶數量可變的 :c:expr:`PyObject *` " | ||
| 576 | 576 | "引數。這些引數是以位置在 *NULL* 後面、數量可變的參數來提供。" | |
| 577 | 577 | ||
| 578 | 578 | #: ../../c-api/call.rst:315 | |
@@ -585,11 +585,11 @@ msgstr "這等價於 Python 運算式 ``callable(arg1, arg2, ...)``。" | |||
| 585 | 585 | msgid "" | |
| 586 | 586 | "Call a method of the Python object *obj*, where the name of the method is " | |
| 587 | 587 | "given as a Python string object in *name*. It is called with a variable " | |
| 588 | - "number of :c:type:`PyObject *` arguments. The arguments are provided as a " | ||
| 588 | + "number of :c:expr:`PyObject *` arguments. The arguments are provided as a " | ||
| 589 | 589 | "variable number of parameters followed by *NULL*." | |
| 590 | 590 | msgstr "" | |
| 591 | 591 | "呼叫 Python 物件 *obj* 中的一個 method,其中 method 名稱由 *name* 中的 " | |
| 592 | - "Python 字串物件給定。被呼叫時會附帶數量可變的 :c:type:`PyObject *` 引數。這些" | ||
| 592 | + "Python 字串物件給定。被呼叫時會附帶數量可變的 :c:expr:`PyObject *` 引數。這些" | ||
| 593 | 593 | "引數是以位置在 *NULL* 後面、且數量可變的參數來提供。" | |
| 594 | 594 | ||
| 595 | 595 | #: ../../c-api/call.rst:332 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ msgid "" | |||
| 7 | 7 | msgstr "" | |
| 8 | 8 | "Project-Id-Version: Python 3.10\n" | |
| 9 | 9 | "Report-Msgid-Bugs-To: \n" | |
| 10 | - "POT-Creation-Date: 2021-09-13 00:11+0000\n" | ||
| 10 | + "POT-Creation-Date: 2022-10-06 00:23+0000\n" | ||
| 11 | 11 | "PO-Revision-Date: 2018-05-23 14:30+0000\n" | |
| 12 | 12 | "Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n" | |
| 13 | 13 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | |
@@ -30,7 +30,7 @@ msgstr "" | |||
| 30 | 30 | #: ../../c-api/capsule.rst:17 | |
| 31 | 31 | msgid "" | |
| 32 | 32 | "This subtype of :c:type:`PyObject` represents an opaque value, useful for C " | |
| 33 | - "extension modules who need to pass an opaque value (as a :c:type:`void*` " | ||
| 33 | + "extension modules who need to pass an opaque value (as a :c:expr:`void*` " | ||
| 34 | 34 | "pointer) through Python code to other C code. It is often used to make a C " | |
| 35 | 35 | "function pointer defined in one module available to other modules, so the " | |
| 36 | 36 | "regular import mechanism can be used to access C APIs defined in dynamically " | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ msgid "" | |||
| 7 | 7 | msgstr "" | |
| 8 | 8 | "Project-Id-Version: Python 3.10\n" | |
| 9 | 9 | "Report-Msgid-Bugs-To: \n" | |
| 10 | - "POT-Creation-Date: 2021-09-13 00:11+0000\n" | ||
| 10 | + "POT-Creation-Date: 2022-10-06 00:23+0000\n" | ||
| 11 | 11 | "PO-Revision-Date: 2015-12-09 17:51+0000\n" | |
| 12 | 12 | "Last-Translator: Liang-Bo Wang <me@liang2.tw>\n" | |
| 13 | 13 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | |
@@ -135,11 +135,11 @@ msgid "Return a new :c:type:`PyComplexObject` object from *real* and *imag*." | |||
| 135 | 135 | msgstr "" | |
| 136 | 136 | ||
| 137 | 137 | #: ../../c-api/complex.rst:118 | |
| 138 | - msgid "Return the real part of *op* as a C :c:type:`double`." | ||
| 138 | + msgid "Return the real part of *op* as a C :c:expr:`double`." | ||
| 139 | 139 | msgstr "" | |
| 140 | 140 | ||
| 141 | 141 | #: ../../c-api/complex.rst:123 | |
| 142 | - msgid "Return the imaginary part of *op* as a C :c:type:`double`." | ||
| 142 | + msgid "Return the imaginary part of *op* as a C :c:expr:`double`." | ||
| 143 | 143 | msgstr "" | |
| 144 | 144 | ||
| 145 | 145 | #: ../../c-api/complex.rst:128 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ msgid "" | |||
| 9 | 9 | msgstr "" | |
| 10 | 10 | "Project-Id-Version: Python 3.10\n" | |
| 11 | 11 | "Report-Msgid-Bugs-To: \n" | |
| 12 | - "POT-Creation-Date: 2021-10-26 16:47+0000\n" | ||
| 12 | + "POT-Creation-Date: 2022-10-08 00:21+0000\n" | ||
| 13 | 13 | "PO-Revision-Date: 2017-09-22 18:26+0000\n" | |
| 14 | 14 | "Last-Translator: Leon H.\n" | |
| 15 | 15 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | |
@@ -55,58 +55,60 @@ msgid "" | |||
| 55 | 55 | "The wrappers ensure that ``str[size-1]`` is always ``'\\0'`` upon return. " | |
| 56 | 56 | "They never write more than *size* bytes (including the trailing ``'\\0'``) " | |
| 57 | 57 | "into str. Both functions require that ``str != NULL``, ``size > 0``, " | |
| 58 | - "``format != NULL`` and ``size < INT_MAX``." | ||
| 58 | + "``format != NULL`` and ``size < INT_MAX``. Note that this means there is no " | ||
| 59 | + "equivalent to the C99 ``n = snprintf(NULL, 0, ...)`` which would determine " | ||
| 60 | + "the necessary buffer size." | ||
| 59 | 61 | msgstr "" | |
| 60 | 62 | ||
| 61 | - #: ../../c-api/conversion.rst:33 | ||
| 63 | + #: ../../c-api/conversion.rst:34 | ||
| 62 | 64 | msgid "" | |
| 63 | 65 | "The return value (*rv*) for these functions should be interpreted as follows:" | |
| 64 | 66 | msgstr "當回傳值 (*rv*) 給這些函數應該被編譯如下:" | |
| 65 | 67 | ||
| 66 | - #: ../../c-api/conversion.rst:35 | ||
| 68 | + #: ../../c-api/conversion.rst:36 | ||
| 67 | 69 | msgid "" | |
| 68 | 70 | "When ``0 <= rv < size``, the output conversion was successful and *rv* " | |
| 69 | 71 | "characters were written to *str* (excluding the trailing ``'\\0'`` byte at " | |
| 70 | 72 | "``str[rv]``)." | |
| 71 | 73 | msgstr "" | |
| 72 | 74 | ||
| 73 | - #: ../../c-api/conversion.rst:39 | ||
| 75 | + #: ../../c-api/conversion.rst:40 | ||
| 74 | 76 | msgid "" | |
| 75 | 77 | "When ``rv >= size``, the output conversion was truncated and a buffer with " | |
| 76 | 78 | "``rv + 1`` bytes would have been needed to succeed. ``str[size-1]`` is " | |
| 77 | 79 | "``'\\0'`` in this case." | |
| 78 | 80 | msgstr "" | |
| 79 | 81 | ||
| 80 | - #: ../../c-api/conversion.rst:43 | ||
| 82 | + #: ../../c-api/conversion.rst:44 | ||
| 81 | 83 | msgid "" | |
| 82 | 84 | "When ``rv < 0``, \"something bad happened.\" ``str[size-1]`` is ``'\\0'`` in " | |
| 83 | 85 | "this case too, but the rest of *str* is undefined. The exact cause of the " | |
| 84 | 86 | "error depends on the underlying platform." | |
| 85 | 87 | msgstr "" | |
| 86 | 88 | ||
| 87 | - #: ../../c-api/conversion.rst:48 | ||
| 89 | + #: ../../c-api/conversion.rst:49 | ||
| 88 | 90 | msgid "" | |
| 89 | 91 | "The following functions provide locale-independent string to number " | |
| 90 | 92 | "conversions." | |
| 91 | 93 | msgstr "" | |
| 92 | 94 | ||
| 93 | - #: ../../c-api/conversion.rst:52 | ||
| 95 | + #: ../../c-api/conversion.rst:53 | ||
| 94 | 96 | msgid "" | |
| 95 | - "Convert a string ``s`` to a :c:type:`double`, raising a Python exception on " | ||
| 97 | + "Convert a string ``s`` to a :c:expr:`double`, raising a Python exception on " | ||
| 96 | 98 | "failure. The set of accepted strings corresponds to the set of strings " | |
| 97 | 99 | "accepted by Python's :func:`float` constructor, except that ``s`` must not " | |
| 98 | 100 | "have leading or trailing whitespace. The conversion is independent of the " | |
| 99 | 101 | "current locale." | |
| 100 | 102 | msgstr "" | |
| 101 | 103 | ||
| 102 | - #: ../../c-api/conversion.rst:58 | ||
| 104 | + #: ../../c-api/conversion.rst:59 | ||
| 103 | 105 | msgid "" | |
| 104 | 106 | "If ``endptr`` is ``NULL``, convert the whole string. Raise :exc:" | |
| 105 | 107 | "`ValueError` and return ``-1.0`` if the string is not a valid representation " | |
| 106 | 108 | "of a floating-point number." | |
| 107 | 109 | msgstr "" | |
| 108 | 110 | ||
| 109 | - #: ../../c-api/conversion.rst:62 | ||
| 111 | + #: ../../c-api/conversion.rst:63 | ||
| 110 | 112 | msgid "" | |
| 111 | 113 | "If endptr is not ``NULL``, convert as much of the string as possible and set " | |
| 112 | 114 | "``*endptr`` to point to the first unconverted character. If no initial " | |
@@ -115,7 +117,7 @@ msgid "" | |||
| 115 | 117 | "ValueError, and return ``-1.0``." | |
| 116 | 118 | msgstr "" | |
| 117 | 119 | ||
| 118 | - #: ../../c-api/conversion.rst:69 | ||
| 120 | + #: ../../c-api/conversion.rst:70 | ||
| 119 | 121 | msgid "" | |
| 120 | 122 | "If ``s`` represents a value that is too large to store in a float (for " | |
| 121 | 123 | "example, ``\"1e500\"`` is such a string on many platforms) then if " | |
@@ -126,71 +128,71 @@ msgid "" | |||
| 126 | 128 | "the first character after the converted value." | |
| 127 | 129 | msgstr "" | |
| 128 | 130 | ||
| 129 | - #: ../../c-api/conversion.rst:77 | ||
| 131 | + #: ../../c-api/conversion.rst:78 | ||
| 130 | 132 | msgid "" | |
| 131 | 133 | "If any other error occurs during the conversion (for example an out-of-" | |
| 132 | 134 | "memory error), set the appropriate Python exception and return ``-1.0``." | |
| 133 | 135 | msgstr "" | |
| 134 | 136 | ||
| 135 | - #: ../../c-api/conversion.rst:86 | ||
| 137 | + #: ../../c-api/conversion.rst:87 | ||
| 136 | 138 | msgid "" | |
| 137 | - "Convert a :c:type:`double` *val* to a string using supplied *format_code*, " | ||
| 139 | + "Convert a :c:expr:`double` *val* to a string using supplied *format_code*, " | ||
| 138 | 140 | "*precision*, and *flags*." | |
| 139 | 141 | msgstr "" | |
| 140 | 142 | ||
| 141 | - #: ../../c-api/conversion.rst:89 | ||
| 143 | + #: ../../c-api/conversion.rst:90 | ||
| 142 | 144 | msgid "" | |
| 143 | 145 | "*format_code* must be one of ``'e'``, ``'E'``, ``'f'``, ``'F'``, ``'g'``, " | |
| 144 | 146 | "``'G'`` or ``'r'``. For ``'r'``, the supplied *precision* must be 0 and is " | |
| 145 | 147 | "ignored. The ``'r'`` format code specifies the standard :func:`repr` format." | |
| 146 | 148 | msgstr "" | |
| 147 | 149 | ||
| 148 | - #: ../../c-api/conversion.rst:94 | ||
| 150 | + #: ../../c-api/conversion.rst:95 | ||
| 149 | 151 | msgid "" | |
| 150 | 152 | "*flags* can be zero or more of the values ``Py_DTSF_SIGN``, " | |
| 151 | 153 | "``Py_DTSF_ADD_DOT_0``, or ``Py_DTSF_ALT``, or-ed together:" | |
| 152 | 154 | msgstr "" | |
| 153 | 155 | ||
| 154 | - #: ../../c-api/conversion.rst:97 | ||
| 156 | + #: ../../c-api/conversion.rst:98 | ||
| 155 | 157 | msgid "" | |
| 156 | 158 | "``Py_DTSF_SIGN`` means to always precede the returned string with a sign " | |
| 157 | 159 | "character, even if *val* is non-negative." | |
| 158 | 160 | msgstr "" | |
| 159 | 161 | ||
| 160 | - #: ../../c-api/conversion.rst:100 | ||
| 162 | + #: ../../c-api/conversion.rst:101 | ||
| 161 | 163 | msgid "" | |
| 162 | 164 | "``Py_DTSF_ADD_DOT_0`` means to ensure that the returned string will not look " | |
| 163 | 165 | "like an integer." | |
| 164 | 166 | msgstr "" | |
| 165 | 167 | ||
| 166 | - #: ../../c-api/conversion.rst:103 | ||
| 168 | + #: ../../c-api/conversion.rst:104 | ||
| 167 | 169 | msgid "" | |
| 168 | 170 | "``Py_DTSF_ALT`` means to apply \"alternate\" formatting rules. See the " | |
| 169 | 171 | "documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for details." | |
| 170 | 172 | msgstr "" | |
| 171 | 173 | ||
| 172 | - #: ../../c-api/conversion.rst:107 | ||
| 174 | + #: ../../c-api/conversion.rst:108 | ||
| 173 | 175 | msgid "" | |
| 174 | 176 | "If *ptype* is non-``NULL``, then the value it points to will be set to one " | |
| 175 | 177 | "of ``Py_DTST_FINITE``, ``Py_DTST_INFINITE``, or ``Py_DTST_NAN``, signifying " | |
| 176 | 178 | "that *val* is a finite number, an infinite number, or not a number, " | |
| 177 | 179 | "respectively." | |
| 178 | 180 | msgstr "" | |
| 179 | 181 | ||
| 180 | - #: ../../c-api/conversion.rst:111 | ||
| 182 | + #: ../../c-api/conversion.rst:112 | ||
| 181 | 183 | msgid "" | |
| 182 | 184 | "The return value is a pointer to *buffer* with the converted string or " | |
| 183 | 185 | "``NULL`` if the conversion failed. The caller is responsible for freeing the " | |
| 184 | 186 | "returned string by calling :c:func:`PyMem_Free`." | |
| 185 | 187 | msgstr "" | |
| 186 | 188 | ||
| 187 | - #: ../../c-api/conversion.rst:120 | ||
| 189 | + #: ../../c-api/conversion.rst:121 | ||
| 188 | 190 | msgid "" | |
| 189 | 191 | "Case insensitive comparison of strings. The function works almost " | |
| 190 | 192 | "identically to :c:func:`strcmp` except that it ignores the case." | |
| 191 | 193 | msgstr "" | |
| 192 | 194 | ||
| 193 | - #: ../../c-api/conversion.rst:126 | ||
| 195 | + #: ../../c-api/conversion.rst:127 | ||
| 194 | 196 | msgid "" | |
| 195 | 197 | "Case insensitive comparison of strings. The function works almost " | |
| 196 | 198 | "identically to :c:func:`strncmp` except that it ignores the case." | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ msgid "" | |||
| 9 | 9 | msgstr "" | |
| 10 | 10 | "Project-Id-Version: Python 3.10\n" | |
| 11 | 11 | "Report-Msgid-Bugs-To: \n" | |
| 12 | - "POT-Creation-Date: 2021-10-26 16:47+0000\n" | ||
| 12 | + "POT-Creation-Date: 2022-10-06 00:23+0000\n" | ||
| 13 | 13 | "PO-Revision-Date: 2017-09-22 18:26+0000\n" | |
| 14 | 14 | "Last-Translator: Liang-Bo Wang <me@liang2.tw>\n" | |
| 15 | 15 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | |
@@ -91,7 +91,7 @@ msgstr "" | |||
| 91 | 91 | #: ../../c-api/dict.rst:75 | |
| 92 | 92 | msgid "" | |
| 93 | 93 | "Insert *val* into the dictionary *p* using *key* as a key. *key* should be " | |
| 94 | - "a :c:type:`const char*`. The key object is created using " | ||
| 94 | + "a :c:expr:`const char*`. The key object is created using " | ||
| 95 | 95 | "``PyUnicode_FromString(key)``. Return ``0`` on success or ``-1`` on " | |
| 96 | 96 | "failure. This function *does not* steal a reference to *val*." | |
| 97 | 97 | msgstr "" | |
@@ -139,7 +139,7 @@ msgstr "" | |||
| 139 | 139 | #: ../../c-api/dict.rst:120 | |
| 140 | 140 | msgid "" | |
| 141 | 141 | "This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a :c:" | |
| 142 | - "type:`const char*`, rather than a :c:type:`PyObject*`." | ||
| 142 | + "expr:`const char*`, rather than a :c:expr:`PyObject*`." | ||
| 143 | 143 | msgstr "" | |
| 144 | 144 | ||
| 145 | 145 | #: ../../c-api/dict.rst:123 | |
@@ -187,7 +187,7 @@ msgid "" | |||
| 187 | 187 | "`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the " | |
| 188 | 188 | "first call to this function to start the iteration; the function returns " | |
| 189 | 189 | "true for each pair in the dictionary, and false once all pairs have been " | |
| 190 | - "reported. The parameters *pkey* and *pvalue* should either point to :c:type:" | ||
| 190 | + "reported. The parameters *pkey* and *pvalue* should either point to :c:expr:" | ||
| 191 | 191 | "`PyObject*` variables that will be filled in with each key and value, " | |
| 192 | 192 | "respectively, or may be ``NULL``. Any references returned through them are " | |
| 193 | 193 | "borrowed. *ppos* should not be altered during iteration. Its value " | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,7 @@ msgid "" | |||
| 8 | 8 | msgstr "" | |
| 9 | 9 | "Project-Id-Version: Python 3.10\n" | |
| 10 | 10 | "Report-Msgid-Bugs-To: \n" | |
| 11 | - "POT-Creation-Date: 2022-05-21 17:35+0000\n" | ||
| 11 | + "POT-Creation-Date: 2022-10-06 00:23+0000\n" | ||
| 12 | 12 | "PO-Revision-Date: 2018-05-23 14:05+0000\n" | |
| 13 | 13 | "Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n" | |
| 14 | 14 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | |
@@ -32,8 +32,8 @@ msgid "" | |||
| 32 | 32 | "occurred. Most C API functions don't clear this on success, but will set it " | |
| 33 | 33 | "to indicate the cause of the error on failure. Most C API functions also " | |
| 34 | 34 | "return an error indicator, usually ``NULL`` if they are supposed to return a " | |
| 35 | - "pointer, or ``-1`` if they return an integer (exception: the :c:func:`PyArg_" | ||
| 36 | - "\\*` functions return ``1`` for success and ``0`` for failure)." | ||
| 35 | + "pointer, or ``-1`` if they return an integer (exception: the ``PyArg_*`` " | ||
| 36 | + "functions return ``1`` for success and ``0`` for failure)." | ||
| 37 | 37 | msgstr "" | |
| 38 | 38 | ||
| 39 | 39 | #: ../../c-api/exceptions.rst:20 | |
@@ -223,12 +223,12 @@ msgstr "" | |||
| 223 | 223 | #: ../../c-api/exceptions.rst:191 | |
| 224 | 224 | msgid "" | |
| 225 | 225 | "This is a convenience function to raise :exc:`WindowsError`. If called with " | |
| 226 | - "*ierr* of :c:data:`0`, the error code returned by a call to :c:func:" | ||
| 227 | - "`GetLastError` is used instead. It calls the Win32 function :c:func:" | ||
| 228 | - "`FormatMessage` to retrieve the Windows description of error code given by " | ||
| 229 | - "*ierr* or :c:func:`GetLastError`, then it constructs a tuple object whose " | ||
| 230 | - "first item is the *ierr* value and whose second item is the corresponding " | ||
| 231 | - "error message (gotten from :c:func:`FormatMessage`), and then calls " | ||
| 226 | + "*ierr* of ``0``, the error code returned by a call to :c:func:`GetLastError` " | ||
| 227 | + "is used instead. It calls the Win32 function :c:func:`FormatMessage` to " | ||
| 228 | + "retrieve the Windows description of error code given by *ierr* or :c:func:" | ||
| 229 | + "`GetLastError`, then it constructs a tuple object whose first item is the " | ||
| 230 | + "*ierr* value and whose second item is the corresponding error message " | ||
| 231 | + "(gotten from :c:func:`FormatMessage`), and then calls " | ||
| 232 | 232 | "``PyErr_SetObject(PyExc_WindowsError, object)``. This function always " | |
| 233 | 233 | "returns ``NULL``." | |
| 234 | 234 | msgstr "" | |
@@ -393,10 +393,10 @@ msgstr "" | |||
| 393 | 393 | #: ../../c-api/exceptions.rst:372 | |
| 394 | 394 | msgid "" | |
| 395 | 395 | "Test whether the error indicator is set. If set, return the exception " | |
| 396 | - "*type* (the first argument to the last call to one of the :c:func:`PyErr_Set" | ||
| 397 | - "\\*` functions or to :c:func:`PyErr_Restore`). If not set, return " | ||
| 398 | - "``NULL``. You do not own a reference to the return value, so you do not " | ||
| 399 | - "need to :c:func:`Py_DECREF` it." | ||
| 396 | + "*type* (the first argument to the last call to one of the ``PyErr_Set*`` " | ||
| 397 | + "functions or to :c:func:`PyErr_Restore`). If not set, return ``NULL``. You " | ||
| 398 | + "do not own a reference to the return value, so you do not need to :c:func:" | ||
| 399 | + "`Py_DECREF` it." | ||
| 400 | 400 | msgstr "" | |
| 401 | 401 | ||
| 402 | 402 | #: ../../c-api/exceptions.rst:378 | |
@@ -884,7 +884,7 @@ msgstr "" | |||
| 884 | 884 | msgid "" | |
| 885 | 885 | "All standard Python exceptions are available as global variables whose names " | |
| 886 | 886 | "are ``PyExc_`` followed by the Python exception name. These have the type :" | |
| 887 | - "c:type:`PyObject*`; they are all class objects. For completeness, here are " | ||
| 887 | + "c:expr:`PyObject*`; they are all class objects. For completeness, here are " | ||
| 888 | 888 | "all the variables:" | |
| 889 | 889 | msgstr "" | |
| 890 | 890 | ||
@@ -1407,7 +1407,7 @@ msgstr "" | |||
| 1407 | 1407 | msgid "" | |
| 1408 | 1408 | "All standard Python warning categories are available as global variables " | |
| 1409 | 1409 | "whose names are ``PyExc_`` followed by the Python exception name. These have " | |
| 1410 | - "the type :c:type:`PyObject*`; they are all class objects. For completeness, " | ||
| 1410 | + "the type :c:expr:`PyObject*`; they are all class objects. For completeness, " | ||
| 1411 | 1411 | "here are all the variables:" | |
| 1412 | 1412 | msgstr "" | |
| 1413 | 1413 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments