Skip to content

Commit 1035d54

Browse files
sync with cpython 2e457bc2
1 parent d6e1811 commit 1035d54

File tree

1 file changed

+55
-49
lines changed

1 file changed

+55
-49
lines changed

library/gc.po

Lines changed: 55 additions & 49 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: 2023-04-24 00:30+0000\n"
10+
"POT-Creation-Date: 2023-05-21 00:33+0000\n"
1111
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1212
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -68,65 +68,71 @@ msgid ""
6868
"implementation, in particular :class:`float`."
6969
msgstr ""
7070

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
7278
msgid ""
7379
"Set the garbage collection debugging flags. Debugging information will be "
7480
"written to ``sys.stderr``. See below for a list of debugging flags which "
7581
"can be combined using bit operations to control debugging."
7682
msgstr ""
7783

78-
#: ../../library/gc.rst:63
84+
#: ../../library/gc.rst:66
7985
msgid "Return the debugging flags currently set."
8086
msgstr ""
8187

82-
#: ../../library/gc.rst:68
88+
#: ../../library/gc.rst:71
8389
msgid ""
8490
"Returns a list of all objects tracked by the collector, excluding the list "
8591
"returned. If *generation* is not None, return only the objects tracked by "
8692
"the collector that are in that generation."
8793
msgstr ""
8894

89-
#: ../../library/gc.rst:72
95+
#: ../../library/gc.rst:75
9096
msgid "New *generation* parameter."
9197
msgstr ""
9298

93-
#: ../../library/gc.rst:75
99+
#: ../../library/gc.rst:78
94100
msgid ""
95101
"Raises an :ref:`auditing event <auditing>` ``gc.get_objects`` with argument "
96102
"``generation``."
97103
msgstr ""
98104

99-
#: ../../library/gc.rst:79
105+
#: ../../library/gc.rst:82
100106
msgid ""
101107
"Return a list of three per-generation dictionaries containing collection "
102108
"statistics since interpreter start. The number of keys may change in the "
103109
"future, but currently each dictionary will contain the following items:"
104110
msgstr ""
105111

106-
#: ../../library/gc.rst:84
112+
#: ../../library/gc.rst:87
107113
msgid "``collections`` is the number of times this generation was collected;"
108114
msgstr ""
109115

110-
#: ../../library/gc.rst:86
116+
#: ../../library/gc.rst:89
111117
msgid ""
112118
"``collected`` is the total number of objects collected inside this "
113119
"generation;"
114120
msgstr ""
115121

116-
#: ../../library/gc.rst:89
122+
#: ../../library/gc.rst:92
117123
msgid ""
118124
"``uncollectable`` is the total number of objects which were found to be "
119125
"uncollectable (and were therefore moved to the :data:`garbage` list) inside "
120126
"this generation."
121127
msgstr ""
122128

123-
#: ../../library/gc.rst:98
129+
#: ../../library/gc.rst:101
124130
msgid ""
125131
"Set the garbage collection thresholds (the collection frequency). Setting "
126132
"*threshold0* to zero disables collection."
127133
msgstr ""
128134

129-
#: ../../library/gc.rst:101
135+
#: ../../library/gc.rst:104
130136
msgid ""
131137
"The GC classifies objects into three generations depending on how many "
132138
"collection sweeps they have survived. New objects are placed in the "
@@ -145,49 +151,49 @@ msgid ""
145151
"information."
146152
msgstr ""
147153

148-
#: ../../library/gc.rst:118
154+
#: ../../library/gc.rst:121
149155
msgid ""
150156
"Return the current collection counts as a tuple of ``(count0, count1, "
151157
"count2)``."
152158
msgstr ""
153159

154-
#: ../../library/gc.rst:124
160+
#: ../../library/gc.rst:127
155161
msgid ""
156162
"Return the current collection thresholds as a tuple of ``(threshold0, "
157163
"threshold1, threshold2)``."
158164
msgstr ""
159165

160-
#: ../../library/gc.rst:130
166+
#: ../../library/gc.rst:133
161167
msgid ""
162168
"Return the list of objects that directly refer to any of objs. This function "
163169
"will only locate those containers which support garbage collection; "
164170
"extension types which do refer to other objects but do not support garbage "
165171
"collection will not be found."
166172
msgstr ""
167173

168-
#: ../../library/gc.rst:135
174+
#: ../../library/gc.rst:138
169175
msgid ""
170176
"Note that objects which have already been dereferenced, but which live in "
171177
"cycles and have not yet been collected by the garbage collector can be "
172178
"listed among the resulting referrers. To get only currently live objects, "
173179
"call :func:`collect` before calling :func:`get_referrers`."
174180
msgstr ""
175181

176-
#: ../../library/gc.rst:141
182+
#: ../../library/gc.rst:144
177183
msgid ""
178184
"Care must be taken when using objects returned by :func:`get_referrers` "
179185
"because some of them could still be under construction and hence in a "
180186
"temporarily invalid state. Avoid using :func:`get_referrers` for any purpose "
181187
"other than debugging."
182188
msgstr ""
183189

184-
#: ../../library/gc.rst:146
190+
#: ../../library/gc.rst:149
185191
msgid ""
186192
"Raises an :ref:`auditing event <auditing>` ``gc.get_referrers`` with "
187193
"argument ``objs``."
188194
msgstr ""
189195

190-
#: ../../library/gc.rst:151
196+
#: ../../library/gc.rst:154
191197
msgid ""
192198
"Return a list of objects directly referred to by any of the arguments. The "
193199
"referents returned are those objects visited by the arguments' C-level :c:"
@@ -199,13 +205,13 @@ msgid ""
199205
"object may or may not appear in the result list."
200206
msgstr ""
201207

202-
#: ../../library/gc.rst:159
208+
#: ../../library/gc.rst:162
203209
msgid ""
204210
"Raises an :ref:`auditing event <auditing>` ``gc.get_referents`` with "
205211
"argument ``objs``."
206212
msgstr ""
207213

208-
#: ../../library/gc.rst:163
214+
#: ../../library/gc.rst:166
209215
msgid ""
210216
"Returns ``True`` if the object is currently tracked by the garbage "
211217
"collector, ``False`` otherwise. As a general rule, instances of atomic "
@@ -215,19 +221,19 @@ msgid ""
215221
"instances (e.g. dicts containing only atomic keys and values)::"
216222
msgstr ""
217223

218-
#: ../../library/gc.rst:188
224+
#: ../../library/gc.rst:191
219225
msgid ""
220226
"Returns ``True`` if the given object has been finalized by the garbage "
221227
"collector, ``False`` otherwise. ::"
222228
msgstr ""
223229

224-
#: ../../library/gc.rst:209
230+
#: ../../library/gc.rst:212
225231
msgid ""
226232
"Freeze all the objects tracked by the garbage collector; move them to a "
227233
"permanent generation and ignore them in all the future collections."
228234
msgstr ""
229235

230-
#: ../../library/gc.rst:212
236+
#: ../../library/gc.rst:215
231237
msgid ""
232238
"If a process will ``fork()`` without ``exec()``, avoiding unnecessary copy-"
233239
"on-write in child processes will maximize memory sharing and reduce overall "
@@ -239,143 +245,143 @@ msgid ""
239245
"``gc.enable()`` early in child processes."
240246
msgstr ""
241247

242-
#: ../../library/gc.rst:226
248+
#: ../../library/gc.rst:229
243249
msgid ""
244250
"Unfreeze the objects in the permanent generation, put them back into the "
245251
"oldest generation."
246252
msgstr ""
247253

248-
#: ../../library/gc.rst:234
254+
#: ../../library/gc.rst:237
249255
msgid "Return the number of objects in the permanent generation."
250256
msgstr ""
251257

252-
#: ../../library/gc.rst:239
258+
#: ../../library/gc.rst:242
253259
msgid ""
254260
"The following variables are provided for read-only access (you can mutate "
255261
"the values but should not rebind them):"
256262
msgstr ""
257263

258-
#: ../../library/gc.rst:244
264+
#: ../../library/gc.rst:247
259265
msgid ""
260266
"A list of objects which the collector found to be unreachable but could not "
261267
"be freed (uncollectable objects). Starting with Python 3.4, this list "
262268
"should be empty most of the time, except when using instances of C extension "
263269
"types with a non-``NULL`` ``tp_del`` slot."
264270
msgstr ""
265271

266-
#: ../../library/gc.rst:249
272+
#: ../../library/gc.rst:252
267273
msgid ""
268274
"If :const:`DEBUG_SAVEALL` is set, then all unreachable objects will be added "
269275
"to this list rather than freed."
270276
msgstr ""
271277

272-
#: ../../library/gc.rst:252
278+
#: ../../library/gc.rst:255
273279
msgid ""
274280
"If this list is non-empty at :term:`interpreter shutdown`, a :exc:"
275281
"`ResourceWarning` is emitted, which is silent by default. If :const:"
276282
"`DEBUG_UNCOLLECTABLE` is set, in addition all uncollectable objects are "
277283
"printed."
278284
msgstr ""
279285

280-
#: ../../library/gc.rst:258
286+
#: ../../library/gc.rst:261
281287
msgid ""
282288
"Following :pep:`442`, objects with a :meth:`__del__` method don't end up in :"
283289
"attr:`gc.garbage` anymore."
284290
msgstr ""
285291

286-
#: ../../library/gc.rst:264
292+
#: ../../library/gc.rst:267
287293
msgid ""
288294
"A list of callbacks that will be invoked by the garbage collector before and "
289295
"after collection. The callbacks will be called with two arguments, *phase* "
290296
"and *info*."
291297
msgstr ""
292298

293-
#: ../../library/gc.rst:268
299+
#: ../../library/gc.rst:271
294300
msgid "*phase* can be one of two values:"
295301
msgstr ""
296302

297-
#: ../../library/gc.rst:270
303+
#: ../../library/gc.rst:273
298304
msgid "\"start\": The garbage collection is about to start."
299305
msgstr ""
300306

301-
#: ../../library/gc.rst:272
307+
#: ../../library/gc.rst:275
302308
msgid "\"stop\": The garbage collection has finished."
303309
msgstr ""
304310

305-
#: ../../library/gc.rst:274
311+
#: ../../library/gc.rst:277
306312
msgid ""
307313
"*info* is a dict providing more information for the callback. The following "
308314
"keys are currently defined:"
309315
msgstr ""
310316

311-
#: ../../library/gc.rst:277
317+
#: ../../library/gc.rst:280
312318
msgid "\"generation\": The oldest generation being collected."
313319
msgstr ""
314320

315-
#: ../../library/gc.rst:279
321+
#: ../../library/gc.rst:282
316322
msgid ""
317323
"\"collected\": When *phase* is \"stop\", the number of objects successfully "
318324
"collected."
319325
msgstr ""
320326

321-
#: ../../library/gc.rst:282
327+
#: ../../library/gc.rst:285
322328
msgid ""
323329
"\"uncollectable\": When *phase* is \"stop\", the number of objects that "
324330
"could not be collected and were put in :data:`garbage`."
325331
msgstr ""
326332

327-
#: ../../library/gc.rst:285
333+
#: ../../library/gc.rst:288
328334
msgid ""
329335
"Applications can add their own callbacks to this list. The primary use "
330336
"cases are:"
331337
msgstr ""
332338

333-
#: ../../library/gc.rst:288
339+
#: ../../library/gc.rst:291
334340
msgid ""
335341
"Gathering statistics about garbage collection, such as how often various "
336342
"generations are collected, and how long the collection takes."
337343
msgstr ""
338344

339-
#: ../../library/gc.rst:292
345+
#: ../../library/gc.rst:295
340346
msgid ""
341347
"Allowing applications to identify and clear their own uncollectable types "
342348
"when they appear in :data:`garbage`."
343349
msgstr ""
344350

345-
#: ../../library/gc.rst:298
351+
#: ../../library/gc.rst:301
346352
msgid "The following constants are provided for use with :func:`set_debug`:"
347353
msgstr ""
348354

349-
#: ../../library/gc.rst:303
355+
#: ../../library/gc.rst:306
350356
msgid ""
351357
"Print statistics during collection. This information can be useful when "
352358
"tuning the collection frequency."
353359
msgstr ""
354360

355-
#: ../../library/gc.rst:309
361+
#: ../../library/gc.rst:312
356362
msgid "Print information on collectable objects found."
357363
msgstr ""
358364

359-
#: ../../library/gc.rst:314
365+
#: ../../library/gc.rst:317
360366
msgid ""
361367
"Print information of uncollectable objects found (objects which are not "
362368
"reachable but cannot be freed by the collector). These objects will be "
363369
"added to the ``garbage`` list."
364370
msgstr ""
365371

366-
#: ../../library/gc.rst:318
372+
#: ../../library/gc.rst:321
367373
msgid ""
368374
"Also print the contents of the :data:`garbage` list at :term:`interpreter "
369375
"shutdown`, if it isn't empty."
370376
msgstr ""
371377

372-
#: ../../library/gc.rst:324
378+
#: ../../library/gc.rst:327
373379
msgid ""
374380
"When set, all unreachable objects found will be appended to *garbage* rather "
375381
"than being freed. This can be useful for debugging a leaking program."
376382
msgstr ""
377383

378-
#: ../../library/gc.rst:330
384+
#: ../../library/gc.rst:333
379385
msgid ""
380386
"The debugging flags necessary for the collector to print information about a "
381387
"leaking program (equal to ``DEBUG_COLLECTABLE | DEBUG_UNCOLLECTABLE | "

0 commit comments

Comments
 (0)