@@ -201,48 +201,56 @@ msgstr ""
201
201
msgid ""
202
202
"This token type isn't used by the C tokenizer but is needed for the "
203
203
":mod:`tokenize` module."
204
- msgstr ""
204
+ msgstr "该词元类型不被 C 分词器所使用但却是 :mod:`tokenize` 模块所需要的。 "
205
205
206
206
#: ../../library/token.rst:150
207
207
msgid ""
208
208
"The following token types are not produced by the :mod:`tokenize` module, "
209
209
"and are defined for special uses in the tokenizer or parser:"
210
- msgstr ""
210
+ msgstr "下列词元类型不会由 :mod:`tokenize` 模块产生,它们是为分词器或解析器内的特殊用处而定义的。 "
211
211
212
212
#: ../../library/token.rst:155
213
213
msgid ""
214
214
"Token value indicating that a ``type: ignore`` comment was recognized. Such "
215
215
"tokens are produced instead of regular :data:`COMMENT` tokens only with the "
216
216
":data:`~ast.PyCF_TYPE_COMMENTS` flag."
217
217
msgstr ""
218
+ "指明一个 ``type: ignore`` 注释已被识别的词元值。 此种词元仅在设置了 :data:`~ast.PyCF_TYPE_COMMENTS` "
219
+ "旗标时会代替常规的 :data:`COMMENT` 词元被产生。"
218
220
219
221
#: ../../library/token.rst:161
220
222
msgid ""
221
223
"Token value indicating that a type comment was recognized. Such tokens are "
222
224
"produced instead of regular :data:`COMMENT` tokens only with the "
223
225
":data:`~ast.PyCF_TYPE_COMMENTS` flag."
224
226
msgstr ""
227
+ "指明一个类型注释已被识别的词元值。 此种词元仅在设置了 :data:`~ast.PyCF_TYPE_COMMENTS` 旗标时会代替常规的 "
228
+ ":data:`COMMENT` 词元被产生。"
225
229
226
230
#: ../../library/token.rst:167
227
231
msgid "Token value indicating a :ref:`soft keyword <soft-keywords>`."
228
- msgstr ""
232
+ msgstr "指明一个 :ref:`软关键字 <soft-keywords>` 的词元值。 "
229
233
230
234
#: ../../library/token.rst:169
231
235
msgid ""
232
236
"The tokenizer never produces this value. To check for a soft keyword, pass a"
233
237
" :data:`NAME` token's string to :func:`keyword.issoftkeyword`."
234
238
msgstr ""
239
+ "分词器绝不会产生该值。 要检测一个软关键字,请将一个 :data:`NAME` 词元字符串传给 "
240
+ ":func:`keyword.issoftkeyword`。"
235
241
236
242
#: ../../library/token.rst:175
237
243
msgid "Token value used to indicate wrong input."
238
- msgstr ""
244
+ msgstr "用于表示错误输入的词元值。 "
239
245
240
246
#: ../../library/token.rst:177
241
247
msgid ""
242
248
"The :mod:`tokenize` module generally indicates errors by raising exceptions "
243
249
"instead of emitting this token. It can also emit tokens such as :data:`OP` "
244
250
"or :data:`NAME` with strings that are later rejected by the parser."
245
251
msgstr ""
252
+ ":mod:`tokenize` 模块通常用引发异常而不是发出这个词元来指明错误。 它也可以发出 :data:`OP` 或 :data:`NAME` "
253
+ "等词元并附带将被解析器拒绝的字符串。"
246
254
247
255
#: ../../library/token.rst:185
248
256
msgid ""
0 commit comments