@@ -256,19 +256,23 @@ msgid ""
256
256
"zero-based. This calls :c:func:`!replace_history_entry` in the underlying "
257
257
"library."
258
258
msgstr ""
259
+ "将指定位置上的历史条目替换为 *line*。 条目位置是从零开始的。 此函数会调用底层库中的 "
260
+ ":c:func:`!replace_history_entry`。"
259
261
260
262
#: ../../library/readline.rst:185
261
263
msgid ""
262
264
"Append *line* to the history buffer, as if it was the last line typed. This "
263
265
"calls :c:func:`!add_history` in the underlying library."
264
- msgstr ""
266
+ msgstr "将 *line* 添加到历史缓冲区,就像它是最近输入的一行。 此函数会调用底层库中的 :c:func:`!add_history`。 "
265
267
266
268
#: ../../library/readline.rst:191
267
269
msgid ""
268
270
"Enable or disable automatic calls to :c:func:`!add_history` when reading "
269
271
"input via readline. The *enabled* argument should be a Boolean value that "
270
272
"when true, enables auto history, and that when false, disables auto history."
271
273
msgstr ""
274
+ "启用或禁用当通过 readline 读取输入时对 :c:func:`!add_history` 的自动调用。 *enabled* "
275
+ "参数应为一个布尔值,当其为真值时启用自动历史,当其为假值时则禁用自动历史。"
272
276
273
277
#: ../../library/readline.rst:199
274
278
msgid ""
@@ -288,6 +292,9 @@ msgid ""
288
292
"installed is removed. The hook is called with no arguments just before "
289
293
"readline prints the first prompt."
290
294
msgstr ""
295
+ "设置或移除底层库的 :c:data:`!rl_startup_hook` 回调所唤起的函数。 如果指定了 "
296
+ "*function*,它将被用作新的钩子函数;如果省略或为 ``None``,则任何已安装的函数将被移除。 钩子函数将在 readline "
297
+ "打印第一个提示之前不带参数地被调用。"
291
298
292
299
#: ../../library/readline.rst:218
293
300
msgid ""
@@ -299,6 +306,9 @@ msgid ""
299
306
"characters. This function only exists if Python was compiled for a version "
300
307
"of the library that supports it."
301
308
msgstr ""
309
+ "设置或移除底层库的 :c:data:`!rl_pre_input_hook` 回调所唤起的函数。 如果指定了 "
310
+ "*function*,它将被用作新的钩子函数;如果省略或为 ``None``,则任何已安装的函数将被移除。 钩子函数将在打印第一个提示之后 "
311
+ "readline 开始读取输入字符之前不带参数地被调用。 此函数仅当 Python 为针对支持此功能的库编译时才会存在。"
302
312
303
313
#: ../../library/readline.rst:230
304
314
msgid "Completion"
0 commit comments