7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.11\n "
9
9
"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 "
11
11
"PO-Revision-Date : 2016-01-31 07:13+0000\n "
12
12
"
Last-Translator :
Liang-Bo Wang <[email protected] >\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -41,19 +41,25 @@ msgstr ""
41
41
42
42
#: ../../library/atexit.rst:23
43
43
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 ""
44
50
"When used with C-API subinterpreters, registered functions are local to the "
45
51
"interpreter they were registered in."
46
52
msgstr ""
47
53
48
- #: ../../library/atexit.rst:29
54
+ #: ../../library/atexit.rst:32
49
55
msgid ""
50
56
"Register *func* as a function to be executed at termination. Any optional "
51
57
"arguments that are to be passed to *func* must be passed as arguments to :"
52
58
"func:`register`. It is possible to register the same function and arguments "
53
59
"more than once."
54
60
msgstr ""
55
61
56
- #: ../../library/atexit.rst:34
62
+ #: ../../library/atexit.rst:37
57
63
msgid ""
58
64
"At normal program termination (for instance, if :func:`sys.exit` is called "
59
65
"or the main module's execution completes), all functions registered are "
@@ -62,21 +68,21 @@ msgid ""
62
68
"be cleaned up later."
63
69
msgstr ""
64
70
65
- #: ../../library/atexit.rst:40
71
+ #: ../../library/atexit.rst:43
66
72
msgid ""
67
73
"If an exception is raised during execution of the exit handlers, a traceback "
68
74
"is printed (unless :exc:`SystemExit` is raised) and the exception "
69
75
"information is saved. After all exit handlers have had a chance to run, the "
70
76
"last exception to be raised is re-raised."
71
77
msgstr ""
72
78
73
- #: ../../library/atexit.rst:45
79
+ #: ../../library/atexit.rst:48
74
80
msgid ""
75
81
"This function returns *func*, which makes it possible to use it as a "
76
82
"decorator."
77
83
msgstr ""
78
84
79
- #: ../../library/atexit.rst:51
85
+ #: ../../library/atexit.rst:54
80
86
msgid ""
81
87
"Remove *func* from the list of functions to be run at interpreter shutdown. :"
82
88
"func:`unregister` silently does nothing if *func* was not previously "
@@ -86,38 +92,38 @@ msgid ""
86
92
"references do not need to have matching identities."
87
93
msgstr ""
88
94
89
- #: ../../library/atexit.rst:62
95
+ #: ../../library/atexit.rst:65
90
96
msgid "Module :mod:`readline`"
91
97
msgstr ":mod:`readline` 模組"
92
98
93
- #: ../../library/atexit.rst:62
99
+ #: ../../library/atexit.rst:65
94
100
msgid ""
95
101
"Useful example of :mod:`atexit` to read and write :mod:`readline` history "
96
102
"files."
97
103
msgstr ""
98
104
99
- #: ../../library/atexit.rst:69
105
+ #: ../../library/atexit.rst:72
100
106
msgid ":mod:`atexit` Example"
101
107
msgstr ":mod:`atexit` 範例"
102
108
103
- #: ../../library/atexit.rst:71
109
+ #: ../../library/atexit.rst:74
104
110
msgid ""
105
111
"The following simple example demonstrates how a module can initialize a "
106
112
"counter from a file when it is imported and save the counter's updated value "
107
113
"automatically when the program terminates without relying on the application "
108
114
"making an explicit call into this module at termination. ::"
109
115
msgstr ""
110
116
111
- #: ../../library/atexit.rst:94
117
+ #: ../../library/atexit.rst:97
112
118
msgid ""
113
119
"Positional and keyword arguments may also be passed to :func:`register` to "
114
120
"be passed along to the registered function when it is called::"
115
121
msgstr ""
116
122
117
- #: ../../library/atexit.rst:106
123
+ #: ../../library/atexit.rst:109
118
124
msgid "Usage as a :term:`decorator`::"
119
125
msgstr ""
120
126
121
- #: ../../library/atexit.rst:114
127
+ #: ../../library/atexit.rst:117
122
128
msgid "This only works with functions that can be called without arguments."
123
129
msgstr ""
0 commit comments