Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79b4c43

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 6259dfa9
1 parentd31af13 commit79b4c43

File tree

2 files changed

+37
-34
lines changed

2 files changed

+37
-34
lines changed

‎library/readline.po

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2023-04-24 00:16+0000\n"
10+
"POT-Creation-Date:2023-12-15 10:50+0000\n"
1111
"PO-Revision-Date:2018-05-23 16:09+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -236,11 +236,11 @@ msgid ""
236236
"of the library that supports it."
237237
msgstr""
238238

239-
#:../../library/readline.rst:217
239+
#:../../library/readline.rst:219
240240
msgid"Completion"
241241
msgstr""
242242

243-
#:../../library/readline.rst:219
243+
#:../../library/readline.rst:221
244244
msgid""
245245
"The following functions relate to implementing a custom word completion "
246246
"function. This is typically operated by the Tab key, and can suggest and "
@@ -250,7 +250,7 @@ msgid ""
250250
"custom completer, a different set of word delimiters should be set."
251251
msgstr""
252252

253-
#:../../library/readline.rst:229
253+
#:../../library/readline.rst:231
254254
msgid""
255255
"Set or remove the completer function. If *function* is specified, it will "
256256
"be used as the new completer function; if omitted or ``None``, any completer "
@@ -260,27 +260,27 @@ msgid ""
260260
"starting with *text*."
261261
msgstr""
262262

263-
#:../../library/readline.rst:236
263+
#:../../library/readline.rst:238
264264
msgid""
265265
"The installed completer function is invoked by the *entry_func* callback "
266266
"passed to :c:func:`rl_completion_matches` in the underlying library. The "
267267
"*text* string comes from the first parameter to the :c:data:"
268268
"`rl_attempted_completion_function` callback of the underlying library."
269269
msgstr""
270270

271-
#:../../library/readline.rst:245
271+
#:../../library/readline.rst:247
272272
msgid""
273273
"Get the completer function, or ``None`` if no completer function has been "
274274
"set."
275275
msgstr""
276276

277-
#:../../library/readline.rst:250
277+
#:../../library/readline.rst:252
278278
msgid""
279279
"Get the type of completion being attempted. This returns the :c:data:"
280280
"`rl_completion_type` variable in the underlying library as an integer."
281281
msgstr""
282282

283-
#:../../library/readline.rst:258
283+
#:../../library/readline.rst:260
284284
msgid""
285285
"Get the beginning or ending index of the completion scope. These indexes are "
286286
"the *start* and *end* arguments passed to the :c:data:"
@@ -290,15 +290,15 @@ msgid ""
290290
"differently than libreadline."
291291
msgstr""
292292

293-
#:../../library/readline.rst:269
293+
#:../../library/readline.rst:271
294294
msgid""
295295
"Set or get the word delimiters for completion. These determine the start of "
296296
"the word to be considered for completion (the completion scope). These "
297297
"functions access the :c:data:`rl_completer_word_break_characters` variable "
298298
"in the underlying library."
299299
msgstr""
300300

301-
#:../../library/readline.rst:277
301+
#:../../library/readline.rst:279
302302
msgid""
303303
"Set or remove the completion display function. If *function* is specified, "
304304
"it will be used as the new completion display function; if omitted or "
@@ -309,11 +309,11 @@ msgid ""
309309
"each time matches need to be displayed."
310310
msgstr""
311311

312-
#:../../library/readline.rst:290
312+
#:../../library/readline.rst:292
313313
msgid"Example"
314314
msgstr"範例"
315315

316-
#:../../library/readline.rst:292
316+
#:../../library/readline.rst:294
317317
msgid""
318318
"The following example demonstrates how to use the :mod:`readline` module's "
319319
"history reading and writing functions to automatically load and save a "
@@ -322,19 +322,19 @@ msgid ""
322322
"sessions from the user's :envvar:`PYTHONSTARTUP` file. ::"
323323
msgstr""
324324

325-
#:../../library/readline.rst:312
325+
#:../../library/readline.rst:314
326326
msgid""
327327
"This code is actually automatically run when Python is run in :ref:"
328328
"`interactive mode <tut-interactive>` (see :ref:`rlcompleter-config`)."
329329
msgstr""
330330

331-
#:../../library/readline.rst:315
331+
#:../../library/readline.rst:317
332332
msgid""
333333
"The following example achieves the same goal but supports concurrent "
334334
"interactive sessions, by only appending the new history. ::"
335335
msgstr""
336336

337-
#:../../library/readline.rst:336
337+
#:../../library/readline.rst:338
338338
msgid""
339339
"The following example extends the :class:`code.InteractiveConsole` class to "
340340
"support history save/restore. ::"

‎library/rlcompleter.po

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2018-06-26 18:54+0800\n"
10+
"POT-Creation-Date:2023-12-15 10:50+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-"
@@ -28,65 +28,68 @@ msgstr "**原始碼:**\\ :source:`Lib/rlcompleter.py`"
2828

2929
#:../../library/rlcompleter.rst:13
3030
msgid""
31-
"The :mod:`rlcompleter` module defines a completion function suitable for "
32-
"the :mod:`readline` module by completing valid Python identifiers and "
33-
"keywords."
31+
"The :mod:`!rlcompleter` module defines a completion function suitable to be "
32+
"passed to :func:`~readline.set_completer` in the :mod:`readline` module."
3433
msgstr""
3534

3635
#:../../library/rlcompleter.rst:16
3736
msgid""
3837
"When this module is imported on a Unix platform with the :mod:`readline` "
3938
"module available, an instance of the :class:`Completer` class is "
40-
"automatically created and its :meth:`complete` method is set as the :mod:"
41-
"`readline` completer."
39+
"automatically created and its :meth:`~Completer.complete` method is set as "
40+
"the :ref:`readline completer <readline-completion>`. The method provides "
41+
"completion of valid Python :ref:`identifiers and keywords <identifiers>`."
4242
msgstr""
4343

44-
#:../../library/rlcompleter.rst:20
44+
#:../../library/rlcompleter.rst:22
4545
msgid"Example::"
4646
msgstr""
4747
"範例:\n"
4848
"\n"
4949
"::"
5050

51-
#:../../library/rlcompleter.rst:31
51+
#:../../library/rlcompleter.rst:33
5252
msgid""
53-
"The :mod:`rlcompleter` module is designed for use with Python's :ref:"
53+
"The :mod:`!rlcompleter` module is designed for use with Python's :ref:"
5454
"`interactive mode <tut-interactive>`. Unless Python is run with the :option:"
5555
"`-S` option, the module is automatically imported and configured (see :ref:"
5656
"`rlcompleter-config`)."
5757
msgstr""
5858

59-
#:../../library/rlcompleter.rst:36
59+
#:../../library/rlcompleter.rst:38
6060
msgid""
6161
"On platforms without :mod:`readline`, the :class:`Completer` class defined "
6262
"by this module can still be used for custom purposes."
6363
msgstr""
6464

65-
#:../../library/rlcompleter.rst:43
66-
msgid"Completer Objects"
67-
msgstr""
68-
69-
#:../../library/rlcompleter.rst:45
65+
#:../../library/rlcompleter.rst:46
7066
msgid"Completer objects have the following method:"
7167
msgstr""
7268

7369
#:../../library/rlcompleter.rst:50
74-
msgid"Return the*state*\\ th completion for *text*."
70+
msgid"Return thenext possible completion for *text*."
7571
msgstr""
7672

7773
#:../../library/rlcompleter.rst:52
7874
msgid""
75+
"When called by the :mod:`readline` module, this method is called "
76+
"successively with ``state == 0, 1, 2, ...`` until the method returns "
77+
"``None``."
78+
msgstr""
79+
80+
#:../../library/rlcompleter.rst:56
81+
msgid""
7982
"If called for *text* that doesn't include a period character (``'.'``), it "
8083
"will complete from names currently defined in :mod:`__main__`, :mod:"
8184
"`builtins` and keywords (as defined by the :mod:`keyword` module)."
8285
msgstr""
8386

84-
#:../../library/rlcompleter.rst:56
87+
#:../../library/rlcompleter.rst:60
8588
msgid""
8689
"If called for a dotted name, it will try to evaluate anything without "
8790
"obvious side-effects (functions will not be evaluated, but it can generate "
88-
"calls to :meth:`__getattr__`) up to the last part, and find matches for the "
89-
"rest via the :func:`dir` function. Any exception raised during the "
91+
"calls to :meth:`~object.__getattr__`) up to the last part, and find matches "
92+
"for therest via the :func:`dir` function. Any exception raised during the "
9093
"evaluation of the expression is caught, silenced and :const:`None` is "
9194
"returned."
9295
msgstr""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp