@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version : Python 3.13\n "
15
15
"Report-Msgid-Bugs-To : \n "
16
- "POT-Creation-Date : 2024-05-10 22:05-0300 \n "
16
+ "POT-Creation-Date : 2024-05-24 14:15+0000 \n "
17
17
"PO-Revision-Date : 2021-06-28 01:06+0000\n "
18
18
"Last-Translator : Maciej Olko <maciej.olko@gmail.com>, 2024\n "
19
19
"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -860,17 +860,19 @@ msgstr ""
860
860
msgid ""
861
861
"The *expression* argument is parsed and evaluated as a Python expression "
862
862
"(technically speaking, a condition list) using the *globals* and *locals* "
863
- "dictionaries as global and local namespace. If the *globals* dictionary is "
863
+ "mappings as global and local namespace. If the *globals* dictionary is "
864
864
"present and does not contain a value for the key ``__builtins__``, a "
865
865
"reference to the dictionary of the built-in module :mod:`builtins` is "
866
866
"inserted under that key before *expression* is parsed. That way you can "
867
867
"control what builtins are available to the executed code by inserting your "
868
868
"own ``__builtins__`` dictionary into *globals* before passing it to :func:"
869
- "`eval`. If the *locals* dictionary is omitted it defaults to the *globals* "
870
- "dictionary. If both dictionaries are omitted, the expression is executed "
871
- "with the *globals* and *locals* in the environment where :func:`eval` is "
872
- "called. Note, *eval()* does not have access to the :term:`nested scopes "
873
- "<nested scope>` (non-locals) in the enclosing environment."
869
+ "`eval`. If the *locals* mapping is omitted it defaults to the *globals* "
870
+ "dictionary. If both mappings are omitted, the expression is executed with "
871
+ "the *globals* and *locals* in the environment where :func:`eval` is called. "
872
+ "Note, *eval()* will only have access to the :term:`nested scopes <nested "
873
+ "scope>` (non-locals) in the enclosing environment if they are already "
874
+ "referenced in the scope that is calling :func:`eval` (e.g. via a :keyword:"
875
+ "`nonlocal` statement)."
874
876
msgstr ""
875
877
876
878
msgid "Example:"
@@ -913,6 +915,11 @@ msgstr ""
913
915
msgid "The *globals* and *locals* arguments can now be passed as keywords."
914
916
msgstr ""
915
917
918
+ msgid ""
919
+ "The semantics of the default *locals* namespace have been adjusted as "
920
+ "described for the :func:`locals` builtin."
921
+ msgstr ""
922
+
916
923
msgid ""
917
924
"This function supports dynamic execution of Python code. *source* must be "
918
925
"either a string or a code object. If it is a string, the string is parsed "
@@ -932,9 +939,15 @@ msgid ""
932
939
"the local variables. If *globals* and *locals* are given, they are used for "
933
940
"the global and local variables, respectively. If provided, *locals* can be "
934
941
"any mapping object. Remember that at the module level, globals and locals "
935
- "are the same dictionary. If exec gets two separate objects as *globals* and "
936
- "*locals*, the code will be executed as if it were embedded in a class "
937
- "definition."
942
+ "are the same dictionary."
943
+ msgstr ""
944
+
945
+ msgid ""
946
+ "When ``exec`` gets two separate objects as *globals* and *locals*, the code "
947
+ "will be executed as if it were embedded in a class definition. This means "
948
+ "functions and classes defined in the executed code will not be able to "
949
+ "access variables assigned at the top level (as the \" top level\" variables "
950
+ "are treated as class variables in a class definition)."
938
951
msgstr ""
939
952
940
953
msgid ""
@@ -954,8 +967,8 @@ msgstr ""
954
967
955
968
msgid ""
956
969
"The built-in functions :func:`globals` and :func:`locals` return the current "
957
- "global and local dictionary , respectively, which may be useful to pass "
958
- "around for use as the second and third argument to :func:`exec`."
970
+ "global and local namespace , respectively, which may be useful to pass around "
971
+ "for use as the second and third argument to :func:`exec`."
959
972
msgstr ""
960
973
961
974
msgid ""
@@ -1331,8 +1344,9 @@ msgid ""
1331
1344
msgstr ""
1332
1345
1333
1346
msgid ""
1334
- "At module scope, as well as when using ``exec()`` or ``eval()`` with a "
1335
- "single namespace, this function returns the same namespace as ``globals()``."
1347
+ "At module scope, as well as when using :func:`exec` or :func:`eval` with a "
1348
+ "single namespace, this function returns the same namespace as :func:"
1349
+ "`globals`."
1336
1350
msgstr ""
1337
1351
1338
1352
msgid ""
@@ -1342,36 +1356,53 @@ msgstr ""
1342
1356
1343
1357
msgid ""
1344
1358
"When using ``exec()`` or ``eval()`` with separate local and global "
1345
- "namespaces , it returns the local namespace passed in to the function call."
1359
+ "arguments , it returns the local namespace passed in to the function call."
1346
1360
msgstr ""
1347
1361
1348
1362
msgid ""
1349
1363
"In all of the above cases, each call to ``locals()`` in a given frame of "
1350
1364
"execution will return the *same* mapping object. Changes made through the "
1351
- "mapping object returned from ``locals()`` will be visible as bound, rebound, "
1352
- "or deleted local variables, and binding, rebinding, or deleting local "
1353
- "variables will immediately affect the contents of the returned mapping "
1354
- "object."
1365
+ "mapping object returned from ``locals()`` will be visible as assigned, "
1366
+ "reassigned, or deleted local variables, and assigning, reassigning, or "
1367
+ "deleting local variables will immediately affect the contents of the "
1368
+ "returned mapping object."
1369
+ msgstr ""
1370
+
1371
+ msgid ""
1372
+ "In an :term:`optimized scope` (including functions, generators, and "
1373
+ "coroutines), each call to ``locals()`` instead returns a fresh dictionary "
1374
+ "containing the current bindings of the function's local variables and any "
1375
+ "nonlocal cell references. In this case, name binding changes made via the "
1376
+ "returned dict are *not* written back to the corresponding local variables or "
1377
+ "nonlocal cell references, and assigning, reassigning, or deleting local "
1378
+ "variables and nonlocal cell references does *not* affect the contents of "
1379
+ "previously returned dictionaries."
1355
1380
msgstr ""
1356
1381
1357
1382
msgid ""
1358
- "At function scope (including for generators and coroutines), each call to "
1359
- "``locals()`` instead returns a fresh dictionary containing the current "
1360
- "bindings of the function's local variables and any nonlocal cell references. "
1361
- "In this case, name binding changes made via the returned dict are *not* "
1362
- "written back to the corresponding local variables or nonlocal cell "
1363
- "references, and binding, rebinding, or deleting local variables and nonlocal "
1364
- "cell references does *not* affect the contents of previously returned "
1365
- "dictionaries."
1383
+ "Calling ``locals()`` as part of a comprehension in a function, generator, or "
1384
+ "coroutine is equivalent to calling it in the containing scope, except that "
1385
+ "the comprehension's initialised iteration variables will be included. In "
1386
+ "other scopes, it behaves as if the comprehension were running as a nested "
1387
+ "function."
1366
1388
msgstr ""
1367
1389
1368
1390
msgid ""
1369
- "In previous versions, the semantics of mutating the mapping object returned "
1370
- "from this function were formally undefined. In CPython specifically, the "
1371
- "mapping returned at function scope could be implicitly refreshed by other "
1372
- "operations, such as calling ``locals()`` again. Obtaining the legacy CPython "
1373
- "behaviour now requires explicit calls to update the initially returned "
1374
- "dictionary with the results of subsequent calls to ``locals()``."
1391
+ "Calling ``locals()`` as part of a generator expression is equivalent to "
1392
+ "calling it in a nested generator function."
1393
+ msgstr ""
1394
+
1395
+ msgid ""
1396
+ "The behaviour of ``locals()`` in a comprehension has been updated as "
1397
+ "described in :pep:`709`."
1398
+ msgstr ""
1399
+
1400
+ msgid ""
1401
+ "As part of :pep:`667`, the semantics of mutating the mapping objects "
1402
+ "returned from this function are now defined. The behavior in :term:"
1403
+ "`optimized scopes <optimized scope>` is now as described above. Aside from "
1404
+ "being defined, the behaviour in other scopes remains unchanged from previous "
1405
+ "versions."
1375
1406
msgstr ""
1376
1407
1377
1408
msgid ""
@@ -2267,10 +2298,7 @@ msgid ""
2267
2298
"`types.MappingProxyType` to prevent direct dictionary updates)."
2268
2299
msgstr ""
2269
2300
2270
- msgid ""
2271
- "Without an argument, :func:`vars` acts like :func:`locals`. Note, the "
2272
- "locals dictionary is only useful for reads since updates to the locals "
2273
- "dictionary are ignored."
2301
+ msgid "Without an argument, :func:`vars` acts like :func:`locals`."
2274
2302
msgstr ""
2275
2303
2276
2304
msgid ""
@@ -2279,6 +2307,11 @@ msgid ""
2279
2307
"defines the :attr:`~object.__slots__` attribute)."
2280
2308
msgstr ""
2281
2309
2310
+ msgid ""
2311
+ "The result of calling this function without an argument has been updated as "
2312
+ "described for the :func:`locals` builtin."
2313
+ msgstr ""
2314
+
2282
2315
msgid ""
2283
2316
"Iterate over several iterables in parallel, producing tuples with an item "
2284
2317
"from each one."
0 commit comments