7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.11\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2023-04-24 00:30 +0000\n "
10
+ "POT-Creation-Date : 2023-05-21 00:33 +0000\n "
11
11
"PO-Revision-Date : 2015-12-09 17:51+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- "
@@ -68,65 +68,71 @@ msgid ""
68
68
"implementation, in particular :class:`float`."
69
69
msgstr ""
70
70
71
- #: ../../library/gc.rst:56
71
+ #: ../../library/gc.rst:53
72
+ msgid ""
73
+ "The effect of calling ``gc.collect()`` while the interpreter is already "
74
+ "performing a collection is undefined."
75
+ msgstr ""
76
+
77
+ #: ../../library/gc.rst:59
72
78
msgid ""
73
79
"Set the garbage collection debugging flags. Debugging information will be "
74
80
"written to ``sys.stderr``. See below for a list of debugging flags which "
75
81
"can be combined using bit operations to control debugging."
76
82
msgstr ""
77
83
78
- #: ../../library/gc.rst:63
84
+ #: ../../library/gc.rst:66
79
85
msgid "Return the debugging flags currently set."
80
86
msgstr ""
81
87
82
- #: ../../library/gc.rst:68
88
+ #: ../../library/gc.rst:71
83
89
msgid ""
84
90
"Returns a list of all objects tracked by the collector, excluding the list "
85
91
"returned. If *generation* is not None, return only the objects tracked by "
86
92
"the collector that are in that generation."
87
93
msgstr ""
88
94
89
- #: ../../library/gc.rst:72
95
+ #: ../../library/gc.rst:75
90
96
msgid "New *generation* parameter."
91
97
msgstr ""
92
98
93
- #: ../../library/gc.rst:75
99
+ #: ../../library/gc.rst:78
94
100
msgid ""
95
101
"Raises an :ref:`auditing event <auditing>` ``gc.get_objects`` with argument "
96
102
"``generation``."
97
103
msgstr ""
98
104
99
- #: ../../library/gc.rst:79
105
+ #: ../../library/gc.rst:82
100
106
msgid ""
101
107
"Return a list of three per-generation dictionaries containing collection "
102
108
"statistics since interpreter start. The number of keys may change in the "
103
109
"future, but currently each dictionary will contain the following items:"
104
110
msgstr ""
105
111
106
- #: ../../library/gc.rst:84
112
+ #: ../../library/gc.rst:87
107
113
msgid "``collections`` is the number of times this generation was collected;"
108
114
msgstr ""
109
115
110
- #: ../../library/gc.rst:86
116
+ #: ../../library/gc.rst:89
111
117
msgid ""
112
118
"``collected`` is the total number of objects collected inside this "
113
119
"generation;"
114
120
msgstr ""
115
121
116
- #: ../../library/gc.rst:89
122
+ #: ../../library/gc.rst:92
117
123
msgid ""
118
124
"``uncollectable`` is the total number of objects which were found to be "
119
125
"uncollectable (and were therefore moved to the :data:`garbage` list) inside "
120
126
"this generation."
121
127
msgstr ""
122
128
123
- #: ../../library/gc.rst:98
129
+ #: ../../library/gc.rst:101
124
130
msgid ""
125
131
"Set the garbage collection thresholds (the collection frequency). Setting "
126
132
"*threshold0* to zero disables collection."
127
133
msgstr ""
128
134
129
- #: ../../library/gc.rst:101
135
+ #: ../../library/gc.rst:104
130
136
msgid ""
131
137
"The GC classifies objects into three generations depending on how many "
132
138
"collection sweeps they have survived. New objects are placed in the "
@@ -145,49 +151,49 @@ msgid ""
145
151
"information."
146
152
msgstr ""
147
153
148
- #: ../../library/gc.rst:118
154
+ #: ../../library/gc.rst:121
149
155
msgid ""
150
156
"Return the current collection counts as a tuple of ``(count0, count1, "
151
157
"count2)``."
152
158
msgstr ""
153
159
154
- #: ../../library/gc.rst:124
160
+ #: ../../library/gc.rst:127
155
161
msgid ""
156
162
"Return the current collection thresholds as a tuple of ``(threshold0, "
157
163
"threshold1, threshold2)``."
158
164
msgstr ""
159
165
160
- #: ../../library/gc.rst:130
166
+ #: ../../library/gc.rst:133
161
167
msgid ""
162
168
"Return the list of objects that directly refer to any of objs. This function "
163
169
"will only locate those containers which support garbage collection; "
164
170
"extension types which do refer to other objects but do not support garbage "
165
171
"collection will not be found."
166
172
msgstr ""
167
173
168
- #: ../../library/gc.rst:135
174
+ #: ../../library/gc.rst:138
169
175
msgid ""
170
176
"Note that objects which have already been dereferenced, but which live in "
171
177
"cycles and have not yet been collected by the garbage collector can be "
172
178
"listed among the resulting referrers. To get only currently live objects, "
173
179
"call :func:`collect` before calling :func:`get_referrers`."
174
180
msgstr ""
175
181
176
- #: ../../library/gc.rst:141
182
+ #: ../../library/gc.rst:144
177
183
msgid ""
178
184
"Care must be taken when using objects returned by :func:`get_referrers` "
179
185
"because some of them could still be under construction and hence in a "
180
186
"temporarily invalid state. Avoid using :func:`get_referrers` for any purpose "
181
187
"other than debugging."
182
188
msgstr ""
183
189
184
- #: ../../library/gc.rst:146
190
+ #: ../../library/gc.rst:149
185
191
msgid ""
186
192
"Raises an :ref:`auditing event <auditing>` ``gc.get_referrers`` with "
187
193
"argument ``objs``."
188
194
msgstr ""
189
195
190
- #: ../../library/gc.rst:151
196
+ #: ../../library/gc.rst:154
191
197
msgid ""
192
198
"Return a list of objects directly referred to by any of the arguments. The "
193
199
"referents returned are those objects visited by the arguments' C-level :c:"
@@ -199,13 +205,13 @@ msgid ""
199
205
"object may or may not appear in the result list."
200
206
msgstr ""
201
207
202
- #: ../../library/gc.rst:159
208
+ #: ../../library/gc.rst:162
203
209
msgid ""
204
210
"Raises an :ref:`auditing event <auditing>` ``gc.get_referents`` with "
205
211
"argument ``objs``."
206
212
msgstr ""
207
213
208
- #: ../../library/gc.rst:163
214
+ #: ../../library/gc.rst:166
209
215
msgid ""
210
216
"Returns ``True`` if the object is currently tracked by the garbage "
211
217
"collector, ``False`` otherwise. As a general rule, instances of atomic "
@@ -215,19 +221,19 @@ msgid ""
215
221
"instances (e.g. dicts containing only atomic keys and values)::"
216
222
msgstr ""
217
223
218
- #: ../../library/gc.rst:188
224
+ #: ../../library/gc.rst:191
219
225
msgid ""
220
226
"Returns ``True`` if the given object has been finalized by the garbage "
221
227
"collector, ``False`` otherwise. ::"
222
228
msgstr ""
223
229
224
- #: ../../library/gc.rst:209
230
+ #: ../../library/gc.rst:212
225
231
msgid ""
226
232
"Freeze all the objects tracked by the garbage collector; move them to a "
227
233
"permanent generation and ignore them in all the future collections."
228
234
msgstr ""
229
235
230
- #: ../../library/gc.rst:212
236
+ #: ../../library/gc.rst:215
231
237
msgid ""
232
238
"If a process will ``fork()`` without ``exec()``, avoiding unnecessary copy-"
233
239
"on-write in child processes will maximize memory sharing and reduce overall "
@@ -239,143 +245,143 @@ msgid ""
239
245
"``gc.enable()`` early in child processes."
240
246
msgstr ""
241
247
242
- #: ../../library/gc.rst:226
248
+ #: ../../library/gc.rst:229
243
249
msgid ""
244
250
"Unfreeze the objects in the permanent generation, put them back into the "
245
251
"oldest generation."
246
252
msgstr ""
247
253
248
- #: ../../library/gc.rst:234
254
+ #: ../../library/gc.rst:237
249
255
msgid "Return the number of objects in the permanent generation."
250
256
msgstr ""
251
257
252
- #: ../../library/gc.rst:239
258
+ #: ../../library/gc.rst:242
253
259
msgid ""
254
260
"The following variables are provided for read-only access (you can mutate "
255
261
"the values but should not rebind them):"
256
262
msgstr ""
257
263
258
- #: ../../library/gc.rst:244
264
+ #: ../../library/gc.rst:247
259
265
msgid ""
260
266
"A list of objects which the collector found to be unreachable but could not "
261
267
"be freed (uncollectable objects). Starting with Python 3.4, this list "
262
268
"should be empty most of the time, except when using instances of C extension "
263
269
"types with a non-``NULL`` ``tp_del`` slot."
264
270
msgstr ""
265
271
266
- #: ../../library/gc.rst:249
272
+ #: ../../library/gc.rst:252
267
273
msgid ""
268
274
"If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added "
269
275
"to this list rather than freed."
270
276
msgstr ""
271
277
272
- #: ../../library/gc.rst:252
278
+ #: ../../library/gc.rst:255
273
279
msgid ""
274
280
"If this list is non-empty at :term:`interpreter shutdown`, a :exc:"
275
281
"`ResourceWarning` is emitted, which is silent by default. If :const:"
276
282
"`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects are "
277
283
"printed."
278
284
msgstr ""
279
285
280
- #: ../../library/gc.rst:258
286
+ #: ../../library/gc.rst:261
281
287
msgid ""
282
288
"Following :pep:`442`, objects with a :meth:`__del__` method don't end up in :"
283
289
"attr:`gc.garbage` anymore."
284
290
msgstr ""
285
291
286
- #: ../../library/gc.rst:264
292
+ #: ../../library/gc.rst:267
287
293
msgid ""
288
294
"A list of callbacks that will be invoked by the garbage collector before and "
289
295
"after collection. The callbacks will be called with two arguments, *phase* "
290
296
"and *info*."
291
297
msgstr ""
292
298
293
- #: ../../library/gc.rst:268
299
+ #: ../../library/gc.rst:271
294
300
msgid "*phase* can be one of two values:"
295
301
msgstr ""
296
302
297
- #: ../../library/gc.rst:270
303
+ #: ../../library/gc.rst:273
298
304
msgid "\" start\" : The garbage collection is about to start."
299
305
msgstr ""
300
306
301
- #: ../../library/gc.rst:272
307
+ #: ../../library/gc.rst:275
302
308
msgid "\" stop\" : The garbage collection has finished."
303
309
msgstr ""
304
310
305
- #: ../../library/gc.rst:274
311
+ #: ../../library/gc.rst:277
306
312
msgid ""
307
313
"*info* is a dict providing more information for the callback. The following "
308
314
"keys are currently defined:"
309
315
msgstr ""
310
316
311
- #: ../../library/gc.rst:277
317
+ #: ../../library/gc.rst:280
312
318
msgid "\" generation\" : The oldest generation being collected."
313
319
msgstr ""
314
320
315
- #: ../../library/gc.rst:279
321
+ #: ../../library/gc.rst:282
316
322
msgid ""
317
323
"\" collected\" : When *phase* is \" stop\" , the number of objects successfully "
318
324
"collected."
319
325
msgstr ""
320
326
321
- #: ../../library/gc.rst:282
327
+ #: ../../library/gc.rst:285
322
328
msgid ""
323
329
"\" uncollectable\" : When *phase* is \" stop\" , the number of objects that "
324
330
"could not be collected and were put in :data:`garbage`."
325
331
msgstr ""
326
332
327
- #: ../../library/gc.rst:285
333
+ #: ../../library/gc.rst:288
328
334
msgid ""
329
335
"Applications can add their own callbacks to this list. The primary use "
330
336
"cases are:"
331
337
msgstr ""
332
338
333
- #: ../../library/gc.rst:288
339
+ #: ../../library/gc.rst:291
334
340
msgid ""
335
341
"Gathering statistics about garbage collection, such as how often various "
336
342
"generations are collected, and how long the collection takes."
337
343
msgstr ""
338
344
339
- #: ../../library/gc.rst:292
345
+ #: ../../library/gc.rst:295
340
346
msgid ""
341
347
"Allowing applications to identify and clear their own uncollectable types "
342
348
"when they appear in :data:`garbage`."
343
349
msgstr ""
344
350
345
- #: ../../library/gc.rst:298
351
+ #: ../../library/gc.rst:301
346
352
msgid "The following constants are provided for use with :func:`set_debug`:"
347
353
msgstr ""
348
354
349
- #: ../../library/gc.rst:303
355
+ #: ../../library/gc.rst:306
350
356
msgid ""
351
357
"Print statistics during collection. This information can be useful when "
352
358
"tuning the collection frequency."
353
359
msgstr ""
354
360
355
- #: ../../library/gc.rst:309
361
+ #: ../../library/gc.rst:312
356
362
msgid "Print information on collectable objects found."
357
363
msgstr ""
358
364
359
- #: ../../library/gc.rst:314
365
+ #: ../../library/gc.rst:317
360
366
msgid ""
361
367
"Print information of uncollectable objects found (objects which are not "
362
368
"reachable but cannot be freed by the collector). These objects will be "
363
369
"added to the ``garbage`` list."
364
370
msgstr ""
365
371
366
- #: ../../library/gc.rst:318
372
+ #: ../../library/gc.rst:321
367
373
msgid ""
368
374
"Also print the contents of the :data:`garbage` list at :term:`interpreter "
369
375
"shutdown`, if it isn't empty."
370
376
msgstr ""
371
377
372
- #: ../../library/gc.rst:324
378
+ #: ../../library/gc.rst:327
373
379
msgid ""
374
380
"When set, all unreachable objects found will be appended to *garbage* rather "
375
381
"than being freed. This can be useful for debugging a leaking program."
376
382
msgstr ""
377
383
378
- #: ../../library/gc.rst:330
384
+ #: ../../library/gc.rst:333
379
385
msgid ""
380
386
"The debugging flags necessary for the collector to print information about a "
381
387
"leaking program (equal to ``DEBUG_COLLECTABLE | DEBUG_UNCOLLECTABLE | "
0 commit comments