Skip to content

Commit ad06b14

Browse files
sync with cpython a712c5f4
1 parent 29775cc commit ad06b14

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

library/atexit.po

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
10+
"POT-Creation-Date: 2023-05-16 00:30+0000\n"
1111
"PO-Revision-Date: 2016-01-31 07:13+0000\n"
1212
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -41,19 +41,25 @@ msgstr ""
4141

4242
#: ../../library/atexit.rst:23
4343
msgid ""
44+
"**Note:** The effect of registering or unregistering functions from within a "
45+
"cleanup function is undefined."
46+
msgstr ""
47+
48+
#: ../../library/atexit.rst:26
49+
msgid ""
4450
"When used with C-API subinterpreters, registered functions are local to the "
4551
"interpreter they were registered in."
4652
msgstr ""
4753

48-
#: ../../library/atexit.rst:29
54+
#: ../../library/atexit.rst:32
4955
msgid ""
5056
"Register *func* as a function to be executed at termination. Any optional "
5157
"arguments that are to be passed to *func* must be passed as arguments to :"
5258
"func:`register`. It is possible to register the same function and arguments "
5359
"more than once."
5460
msgstr ""
5561

56-
#: ../../library/atexit.rst:34
62+
#: ../../library/atexit.rst:37
5763
msgid ""
5864
"At normal program termination (for instance, if :func:`sys.exit` is called "
5965
"or the main module's execution completes), all functions registered are "
@@ -62,21 +68,21 @@ msgid ""
6268
"be cleaned up later."
6369
msgstr ""
6470

65-
#: ../../library/atexit.rst:40
71+
#: ../../library/atexit.rst:43
6672
msgid ""
6773
"If an exception is raised during execution of the exit handlers, a traceback "
6874
"is printed (unless :exc:`SystemExit` is raised) and the exception "
6975
"information is saved. After all exit handlers have had a chance to run, the "
7076
"last exception to be raised is re-raised."
7177
msgstr ""
7278

73-
#: ../../library/atexit.rst:45
79+
#: ../../library/atexit.rst:48
7480
msgid ""
7581
"This function returns *func*, which makes it possible to use it as a "
7682
"decorator."
7783
msgstr ""
7884

79-
#: ../../library/atexit.rst:51
85+
#: ../../library/atexit.rst:54
8086
msgid ""
8187
"Remove *func* from the list of functions to be run at interpreter shutdown. :"
8288
"func:`unregister` silently does nothing if *func* was not previously "
@@ -86,38 +92,38 @@ msgid ""
8692
"references do not need to have matching identities."
8793
msgstr ""
8894

89-
#: ../../library/atexit.rst:62
95+
#: ../../library/atexit.rst:65
9096
msgid "Module :mod:`readline`"
9197
msgstr ":mod:`readline` 模組"
9298

93-
#: ../../library/atexit.rst:62
99+
#: ../../library/atexit.rst:65
94100
msgid ""
95101
"Useful example of :mod:`atexit` to read and write :mod:`readline` history "
96102
"files."
97103
msgstr ""
98104

99-
#: ../../library/atexit.rst:69
105+
#: ../../library/atexit.rst:72
100106
msgid ":mod:`atexit` Example"
101107
msgstr ":mod:`atexit` 範例"
102108

103-
#: ../../library/atexit.rst:71
109+
#: ../../library/atexit.rst:74
104110
msgid ""
105111
"The following simple example demonstrates how a module can initialize a "
106112
"counter from a file when it is imported and save the counter's updated value "
107113
"automatically when the program terminates without relying on the application "
108114
"making an explicit call into this module at termination. ::"
109115
msgstr ""
110116

111-
#: ../../library/atexit.rst:94
117+
#: ../../library/atexit.rst:97
112118
msgid ""
113119
"Positional and keyword arguments may also be passed to :func:`register` to "
114120
"be passed along to the registered function when it is called::"
115121
msgstr ""
116122

117-
#: ../../library/atexit.rst:106
123+
#: ../../library/atexit.rst:109
118124
msgid "Usage as a :term:`decorator`::"
119125
msgstr ""
120126

121-
#: ../../library/atexit.rst:114
127+
#: ../../library/atexit.rst:117
122128
msgid "This only works with functions that can be called without arguments."
123129
msgstr ""

0 commit comments

Comments
 (0)