77msgstr ""
88"Project-Id-Version :Python 3.12\n "
99"Report-Msgid-Bugs-To :\n "
10- "POT-Creation-Date :2023-07-17 17:39+0800 \n "
10+ "POT-Creation-Date :2024-04-22 00:04+0000 \n "
1111"PO-Revision-Date :2018-05-23 16:17+0000\n "
1212"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
1313"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -197,19 +197,20 @@ msgid ""
197197"searching the global namespace, i.e. the namespace of the module containing "
198198"the code block, and the builtins namespace, the namespace of the module :mod:"
199199"`builtins`. The global namespace is searched first. If the names are not "
200- "found there, the builtins namespace is searched. The :keyword:`!global` "
201- "statement must precede all uses of the listed names."
200+ "found there, the builtins namespace is searched next. If the names are also "
201+ "not found in the builtins namespace, new variables are created in the global "
202+ "namespace. The global statement must precede all uses of the listed names."
202203msgstr ""
203204
204- #: ../../reference/executionmodel.rst:145
205+ #: ../../reference/executionmodel.rst:146
205206msgid ""
206207"The :keyword:`global` statement has the same scope as a name binding "
207208"operation in the same block. If the nearest enclosing scope for a free "
208209"variable contains a global statement, the free variable is treated as a "
209210"global."
210211msgstr ""
211212
212- #: ../../reference/executionmodel.rst:151
213+ #: ../../reference/executionmodel.rst:152
213214msgid ""
214215"The :keyword:`nonlocal` statement causes corresponding names to refer to "
215216"previously bound variables in the nearest enclosing function scope. :exc:"
@@ -218,13 +219,13 @@ msgid ""
218219"rebound with the :keyword:`!nonlocal` statement."
219220msgstr ""
220221
221- #: ../../reference/executionmodel.rst:159
222+ #: ../../reference/executionmodel.rst:160
222223msgid ""
223224"The namespace for a module is automatically created the first time a module "
224225"is imported. The main module for a script is always called :mod:`__main__`."
225226msgstr ""
226227
227- #: ../../reference/executionmodel.rst:162
228+ #: ../../reference/executionmodel.rst:163
228229msgid ""
229230"Class definition blocks and arguments to :func:`exec` and :func:`eval` are "
230231"special in the context of name resolution. A class definition is an "
@@ -239,15 +240,15 @@ msgid ""
239240"the following will fail::"
240241msgstr ""
241242
242- #: ../../reference/executionmodel.rst:179
243+ #: ../../reference/executionmodel.rst:180
243244msgid "However, the following will succeed::"
244245msgstr ""
245246
246- #: ../../reference/executionmodel.rst:190
247+ #: ../../reference/executionmodel.rst:191
247248msgid "Annotation scopes"
248249msgstr ""
249250
250- #: ../../reference/executionmodel.rst:192
251+ #: ../../reference/executionmodel.rst:193
251252msgid ""
252253":ref:`Type parameter lists <type-params>` and :keyword:`type` statements "
253254"introduce *annotation scopes*, which behave mostly like function scopes, but "
@@ -256,44 +257,44 @@ msgid ""
256257"annotation scopes in Python 3.13 when :pep:`649` is implemented."
257258msgstr ""
258259
259- #: ../../reference/executionmodel.rst:198
260+ #: ../../reference/executionmodel.rst:199
260261msgid "Annotation scopes are used in the following contexts:"
261262msgstr ""
262263
263- #: ../../reference/executionmodel.rst:200
264+ #: ../../reference/executionmodel.rst:201
264265msgid ""
265266"Type parameter lists for :ref:`generic type aliases <generic-type-aliases>`."
266267msgstr ""
267268
268- #: ../../reference/executionmodel.rst:201
269+ #: ../../reference/executionmodel.rst:202
269270msgid ""
270271"Type parameter lists for :ref:`generic functions <generic-functions>`. A "
271272"generic function's annotations are executed within the annotation scope, but "
272273"its defaults and decorators are not."
273274msgstr ""
274275
275- #: ../../reference/executionmodel.rst:204
276+ #: ../../reference/executionmodel.rst:205
276277msgid ""
277278"Type parameter lists for :ref:`generic classes <generic-classes>`. A generic "
278279"class's base classes and keyword arguments are executed within the "
279280"annotation scope, but its decorators are not."
280281msgstr ""
281282
282- #: ../../reference/executionmodel.rst:207
283+ #: ../../reference/executionmodel.rst:208
283284msgid ""
284285"The bounds and constraints for type variables (:ref:`lazily evaluated <lazy-"
285286"evaluation>`)."
286287msgstr ""
287288
288- #: ../../reference/executionmodel.rst:209
289+ #: ../../reference/executionmodel.rst:210
289290msgid "The value of type aliases (:ref:`lazily evaluated <lazy-evaluation>`)."
290291msgstr ""
291292
292- #: ../../reference/executionmodel.rst:211
293+ #: ../../reference/executionmodel.rst:212
293294msgid "Annotation scopes differ from function scopes in the following ways:"
294295msgstr ""
295296
296- #: ../../reference/executionmodel.rst:213
297+ #: ../../reference/executionmodel.rst:214
297298msgid ""
298299"Annotation scopes have access to their enclosing class namespace. If an "
299300"annotation scope is immediately within a class scope, or within another "
@@ -304,39 +305,39 @@ msgid ""
304305"class scope."
305306msgstr ""
306307
307- #: ../../reference/executionmodel.rst:219
308+ #: ../../reference/executionmodel.rst:220
308309msgid ""
309310"Expressions in annotation scopes cannot contain :keyword:`yield`, ``yield "
310311"from``, :keyword:`await`, or :token:`:= <python-grammar:"
311312"assignment_expression>` expressions. (These expressions are allowed in other "
312313"scopes contained within the annotation scope.)"
313314msgstr ""
314315
315- #: ../../reference/executionmodel.rst:223
316+ #: ../../reference/executionmodel.rst:224
316317msgid ""
317318"Names defined in annotation scopes cannot be rebound with :keyword:"
318319"`nonlocal` statements in inner scopes. This includes only type parameters, "
319320"as no other syntactic elements that can appear within annotation scopes can "
320321"introduce new names."
321322msgstr ""
322323
323- #: ../../reference/executionmodel.rst:226
324+ #: ../../reference/executionmodel.rst:227
324325msgid ""
325326"While annotation scopes have an internal name, that name is not reflected in "
326327"the :term:`__qualname__ <qualified name>` of objects defined within the "
327328"scope. Instead, the :attr:`!__qualname__` of such objects is as if the "
328329"object were defined in the enclosing scope."
329330msgstr ""
330331
331- #: ../../reference/executionmodel.rst:231
332+ #: ../../reference/executionmodel.rst:232
332333msgid "Annotation scopes were introduced in Python 3.12 as part of :pep:`695`."
333334msgstr ""
334335
335- #: ../../reference/executionmodel.rst:237
336+ #: ../../reference/executionmodel.rst:238
336337msgid "Lazy evaluation"
337338msgstr ""
338339
339- #: ../../reference/executionmodel.rst:239
340+ #: ../../reference/executionmodel.rst:240
340341msgid ""
341342"The values of type aliases created through the :keyword:`type` statement are "
342343"*lazily evaluated*. The same applies to the bounds and constraints of type "
@@ -346,43 +347,43 @@ msgid ""
346347"resolve an attribute access."
347348msgstr ""
348349
349- #: ../../reference/executionmodel.rst:246
350+ #: ../../reference/executionmodel.rst:247
350351msgid "Example:"
351352msgstr ""
352353
353- #: ../../reference/executionmodel.rst:262
354+ #: ../../reference/executionmodel.rst:263
354355msgid ""
355356"Here the exception is raised only when the ``__value__`` attribute of the "
356357"type alias or the ``__bound__`` attribute of the type variable is accessed."
357358msgstr ""
358359
359- #: ../../reference/executionmodel.rst:266
360+ #: ../../reference/executionmodel.rst:267
360361msgid ""
361362"This behavior is primarily useful for references to types that have not yet "
362363"been defined when the type alias or type variable is created. For example, "
363364"lazy evaluation enables creation of mutually recursive type aliases::"
364365msgstr ""
365366
366- #: ../../reference/executionmodel.rst:276
367+ #: ../../reference/executionmodel.rst:277
367368msgid ""
368369"Lazily evaluated values are evaluated in :ref:`annotation scope <annotation-"
369370"scopes>`, which means that names that appear inside the lazily evaluated "
370371"value are looked up as if they were used in the immediately enclosing scope."
371372msgstr ""
372373
373- #: ../../reference/executionmodel.rst:285
374+ #: ../../reference/executionmodel.rst:286
374375msgid "Builtins and restricted execution"
375376msgstr ""
376377
377- #: ../../reference/executionmodel.rst:291
378+ #: ../../reference/executionmodel.rst:292
378379msgid ""
379380"Users should not touch ``__builtins__``; it is strictly an implementation "
380381"detail. Users wanting to override values in the builtins namespace should :"
381382"keyword:`import` the :mod:`builtins` module and modify its attributes "
382383"appropriately."
383384msgstr ""
384385
385- #: ../../reference/executionmodel.rst:296
386+ #: ../../reference/executionmodel.rst:297
386387msgid ""
387388"The builtins namespace associated with the execution of a code block is "
388389"actually found by looking up the name ``__builtins__`` in its global "
@@ -393,17 +394,17 @@ msgid ""
393394"`builtins` module itself."
394395msgstr ""
395396
396- #: ../../reference/executionmodel.rst:308
397+ #: ../../reference/executionmodel.rst:309
397398msgid "Interaction with dynamic features"
398399msgstr ""
399400
400- #: ../../reference/executionmodel.rst:310
401+ #: ../../reference/executionmodel.rst:311
401402msgid ""
402403"Name resolution of free variables occurs at runtime, not at compile time. "
403404"This means that the following code will print 42::"
404405msgstr ""
405406
406- #: ../../reference/executionmodel.rst:321
407+ #: ../../reference/executionmodel.rst:322
407408msgid ""
408409"The :func:`eval` and :func:`exec` functions do not have access to the full "
409410"environment for resolving names. Names may be resolved in the local and "
@@ -414,11 +415,11 @@ msgid ""
414415"for both."
415416msgstr ""
416417
417- #: ../../reference/executionmodel.rst:332
418+ #: ../../reference/executionmodel.rst:333
418419msgid "Exceptions"
419420msgstr "例外"
420421
421- #: ../../reference/executionmodel.rst:343
422+ #: ../../reference/executionmodel.rst:344
422423msgid ""
423424"Exceptions are a means of breaking out of the normal flow of control of a "
424425"code block in order to handle errors or other exceptional conditions. An "
@@ -427,7 +428,7 @@ msgid ""
427428"or indirectly invoked the code block where the error occurred."
428429msgstr ""
429430
430- #: ../../reference/executionmodel.rst:349
431+ #: ../../reference/executionmodel.rst:350
431432msgid ""
432433"The Python interpreter raises an exception when it detects a run-time error "
433434"(such as division by zero). A Python program can also explicitly raise an "
@@ -438,23 +439,23 @@ msgid ""
438439"exception occurred or not in the preceding code."
439440msgstr ""
440441
441- #: ../../reference/executionmodel.rst:359
442+ #: ../../reference/executionmodel.rst:360
442443msgid ""
443444"Python uses the\" termination\" model of error handling: an exception "
444445"handler can find out what happened and continue execution at an outer level, "
445446"but it cannot repair the cause of the error and retry the failing operation "
446447"(except by re-entering the offending piece of code from the top)."
447448msgstr ""
448449
449- #: ../../reference/executionmodel.rst:366
450+ #: ../../reference/executionmodel.rst:367
450451msgid ""
451452"When an exception is not handled at all, the interpreter terminates "
452453"execution of the program, or returns to its interactive main loop. In "
453454"either case, it prints a stack traceback, except when the exception is :exc:"
454455"`SystemExit`."
455456msgstr ""
456457
457- #: ../../reference/executionmodel.rst:370
458+ #: ../../reference/executionmodel.rst:371
458459msgid ""
459460"Exceptions are identified by class instances. The :keyword:`except` clause "
460461"is selected depending on the class of the instance: it must reference the "
@@ -463,25 +464,25 @@ msgid ""
463464"additional information about the exceptional condition."
464465msgstr ""
465466
466- #: ../../reference/executionmodel.rst:378
467+ #: ../../reference/executionmodel.rst:379
467468msgid ""
468469"Exception messages are not part of the Python API. Their contents may "
469470"change from one version of Python to the next without warning and should not "
470471"be relied on by code which will run under multiple versions of the "
471472"interpreter."
472473msgstr ""
473474
474- #: ../../reference/executionmodel.rst:382
475+ #: ../../reference/executionmodel.rst:383
475476msgid ""
476477"See also the description of the :keyword:`try` statement in section :ref:"
477478"`try` and :keyword:`raise` statement in section :ref:`raise`."
478479msgstr ""
479480
480- #: ../../reference/executionmodel.rst:387
481+ #: ../../reference/executionmodel.rst:388
481482msgid "Footnotes"
482483msgstr "註解"
483484
484- #: ../../reference/executionmodel.rst:388
485+ #: ../../reference/executionmodel.rst:389
485486msgid ""
486487"This limitation occurs because the code that is executed by these operations "
487488"is not available at the time the module is compiled."
@@ -499,7 +500,7 @@ msgstr "code(程式碼)"
499500msgid "block"
500501msgstr "block"
501502
502- #: ../../reference/executionmodel.rst:31 ../../reference/executionmodel.rst:287
503+ #: ../../reference/executionmodel.rst:31 ../../reference/executionmodel.rst:288
503504msgid "execution"
504505msgstr "execution(執行)"
505506
@@ -551,46 +552,46 @@ msgstr "NameError(內建例外)"
551552msgid "UnboundLocalError"
552553msgstr "UnboundLocalError"
553554
554- #: ../../reference/executionmodel.rst:157
555+ #: ../../reference/executionmodel.rst:158
555556msgid "module"
556557msgstr "module(模組)"
557558
558- #: ../../reference/executionmodel.rst:157
559+ #: ../../reference/executionmodel.rst:158
559560msgid "__main__"
560561msgstr "__main__"
561562
562- #: ../../reference/executionmodel.rst:287
563+ #: ../../reference/executionmodel.rst:288
563564msgid "restricted"
564565msgstr "restricted(受限)"
565566
566- #: ../../reference/executionmodel.rst:334
567+ #: ../../reference/executionmodel.rst:335
567568msgid "exception"
568569msgstr "exception(例外)"
569570
570- #: ../../reference/executionmodel.rst:336
571+ #: ../../reference/executionmodel.rst:337
571572msgid "raise an exception"
572573msgstr "raise an exception(引發例外)"
573574
574- #: ../../reference/executionmodel.rst:336
575+ #: ../../reference/executionmodel.rst:337
575576msgid "handle an exception"
576577msgstr "handle an exception(處理例外)"
577578
578- #: ../../reference/executionmodel.rst:336
579+ #: ../../reference/executionmodel.rst:337
579580msgid "exception handler"
580581msgstr "exception handler(例外處理器)"
581582
582- #: ../../reference/executionmodel.rst:336
583+ #: ../../reference/executionmodel.rst:337
583584msgid "errors"
584585msgstr "errors(錯誤)"
585586
586- #: ../../reference/executionmodel.rst:336
587+ #: ../../reference/executionmodel.rst:337
587588msgid "error handling"
588589msgstr "error handling(錯誤處理)"
589590
590- #: ../../reference/executionmodel.rst:357
591+ #: ../../reference/executionmodel.rst:358
591592msgid "termination model"
592593msgstr "termination model(終止模型)"
593594
594- #: ../../reference/executionmodel.rst:364
595+ #: ../../reference/executionmodel.rst:365
595596msgid "SystemExit (built-in exception)"
596597msgstr "SystemExit(內建例外)"