@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.13\n "
1515"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 "
1717"PO-Revision-Date : 2021-06-28 01:06+0000\n "
1818"
Last-Translator :
Maciej Olko <[email protected] >, 2024\n "
1919"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -860,17 +860,19 @@ msgstr ""
860860msgid ""
861861"The *expression* argument is parsed and evaluated as a Python expression "
862862"(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 "
864864"present and does not contain a value for the key ``__builtins__``, a "
865865"reference to the dictionary of the built-in module :mod:`builtins` is "
866866"inserted under that key before *expression* is parsed. That way you can "
867867"control what builtins are available to the executed code by inserting your "
868868"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)."
874876msgstr ""
875877
876878msgid "Example:"
@@ -913,6 +915,11 @@ msgstr ""
913915msgid "The *globals* and *locals* arguments can now be passed as keywords."
914916msgstr ""
915917
918+ msgid ""
919+ "The semantics of the default *locals* namespace have been adjusted as "
920+ "described for the :func:`locals` builtin."
921+ msgstr ""
922+
916923msgid ""
917924"This function supports dynamic execution of Python code. *source* must be "
918925"either a string or a code object. If it is a string, the string is parsed "
@@ -932,9 +939,15 @@ msgid ""
932939"the local variables. If *globals* and *locals* are given, they are used for "
933940"the global and local variables, respectively. If provided, *locals* can be "
934941"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)."
938951msgstr ""
939952
940953msgid ""
@@ -954,8 +967,8 @@ msgstr ""
954967
955968msgid ""
956969"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`."
959972msgstr ""
960973
961974msgid ""
@@ -1331,8 +1344,9 @@ msgid ""
13311344msgstr ""
13321345
13331346msgid ""
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`."
13361350msgstr ""
13371351
13381352msgid ""
@@ -1342,36 +1356,53 @@ msgstr ""
13421356
13431357msgid ""
13441358"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."
13461360msgstr ""
13471361
13481362msgid ""
13491363"In all of the above cases, each call to ``locals()`` in a given frame of "
13501364"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."
13551380msgstr ""
13561381
13571382msgid ""
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."
13661388msgstr ""
13671389
13681390msgid ""
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."
13751406msgstr ""
13761407
13771408msgid ""
@@ -2267,10 +2298,7 @@ msgid ""
22672298"`types.MappingProxyType` to prevent direct dictionary updates)."
22682299msgstr ""
22692300
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`."
22742302msgstr ""
22752303
22762304msgid ""
@@ -2279,6 +2307,11 @@ msgid ""
22792307"defines the :attr:`~object.__slots__` attribute)."
22802308msgstr ""
22812309
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+
22822315msgid ""
22832316"Iterate over several iterables in parallel, producing tuples with an item "
22842317"from each one."
0 commit comments