55#
66# Translators:
77# python-doc bot, 2026
8- # Rafael Fontenelle <rffontenelle@gmail.com>, 2026
98# Maciej Olko, 2026
9+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2026
1010#
1111#, fuzzy
1212msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.15\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2026-10-03 17:41 +0000\n "
16+ "POT-Creation-Date : 2026-10-13 19:59 +0000\n "
1717"PO-Revision-Date : 2026-09-13 17:09+0000\n "
18- "Last-Translator : Maciej Olko , 2026\n "
18+ "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com> , 2026\n "
1919"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
2020"MIME-Version : 1.0\n "
2121"Content-Type : text/plain; charset=UTF-8\n "
@@ -1071,7 +1071,7 @@ msgid ""
10711071"using :func:`int` instead."
10721072msgstr ""
10731073
1074- msgid "Iterator Types "
1074+ msgid "Iteration-related types "
10751075msgstr ""
10761076
10771077msgid ""
@@ -1081,6 +1081,9 @@ msgid ""
10811081"support the iteration methods."
10821082msgstr ""
10831083
1084+ msgid "Iterables"
1085+ msgstr ""
1086+
10841087msgid ""
10851088"One method needs to be defined for container objects to provide :term:"
10861089"`iterable` support:"
@@ -1097,6 +1100,9 @@ msgid ""
10971100"in the Python/C API."
10981101msgstr ""
10991102
1103+ msgid "Iterators"
1104+ msgstr "Iteratory"
1105+
11001106msgid ""
11011107"The iterator objects themselves are required to support the following two "
11021108"methods, which together form the :dfn:`iterator protocol`:"
@@ -1129,17 +1135,298 @@ msgid ""
11291135"Implementations that do not obey this property are deemed broken."
11301136msgstr ""
11311137
1132- msgid "Generator Types"
1138+ msgid "Generator types"
1139+ msgstr ""
1140+
1141+ msgid ""
1142+ "Python's :term:`generators <generator>` -- or more precisely, :term:"
1143+ "`generator functions <generator function>` and :term:`generator iterators "
1144+ "<generator iterator>` -- provide a convenient way to implement the iterator "
1145+ "protocol."
1146+ msgstr ""
1147+
1148+ msgid ""
1149+ "A function that contains one or more :ref:`yield expressions <yieldexpr>` is "
1150+ "a :term:`generator function`. For example::"
1151+ msgstr ""
1152+
1153+ msgid ""
1154+ ">>> def count_to_three():\n"
1155+ "... yield 0\n"
1156+ "... yield 1\n"
1157+ "... yield 2\n"
1158+ "... yield 3"
1159+ msgstr ""
1160+
1161+ msgid ""
1162+ "Generator functions behave as regular :ref:`user-defined functions <user-"
1163+ "defined-funcs>` (for example, they have the same attributes), except that "
1164+ "calling a generator function returns a :ref:`generator iterator <generator-"
1165+ "methods>`::"
1166+ msgstr ""
1167+
1168+ msgid ""
1169+ ">>> count_to_three()\n"
1170+ "<generator object count_to_three at 0x7f33a2305000>"
1171+ msgstr ""
1172+
1173+ msgid ""
1174+ "Iterating a generator iterator executes code of the underlying generator "
1175+ "function, producing each :keyword:`yield`\\ ed value in turn::"
1176+ msgstr ""
1177+
1178+ msgid ""
1179+ ">>> for number in count_to_three():\n"
1180+ "... print(number)\n"
1181+ "0\n"
1182+ "1\n"
1183+ "2\n"
1184+ "3\n"
1185+ "\n"
1186+ ">>> list(count_to_three())\n"
1187+ "[0, 1, 2, 3]"
1188+ msgstr ""
1189+
1190+ msgid ""
1191+ "One common use for generator functions is implementing the :meth:`~object."
1192+ "__iter__` method of custom iterable objects. For example::"
1193+ msgstr ""
1194+
1195+ msgid ""
1196+ ">>> class CardDeck:\n"
1197+ "... def __iter__(self):\n"
1198+ "... yield 'three of clubs'\n"
1199+ "... yield 'ace of hearts'\n"
1200+ "\n"
1201+ ">>> list(CardDeck())\n"
1202+ "['three of clubs', 'ace of hearts']"
1203+ msgstr ""
1204+
1205+ msgid "Generator iterators"
1206+ msgstr ""
1207+
1208+ msgid ""
1209+ "Generator iterators implement the :ref:`iterator protocol <stdtypes-"
1210+ "iterators>`. Iterating them drives execution of the underlying generator "
1211+ "function."
1212+ msgstr ""
1213+
1214+ msgid ""
1215+ "Starts the execution of a generator function or resumes it at the :ref:"
1216+ "`yield expression <yieldexpr>` where the function is currently suspended. "
1217+ "When a generator function is resumed with a :meth:`~generator.__next__` "
1218+ "method, the current yield expression always evaluates to :const:`None`. The "
1219+ "execution then continues to the next yield expression, where the generator "
1220+ "is suspended again, and the value of the expression after the :keyword:"
1221+ "`yield` keyword is returned to :meth:`~generator.__next__`'s caller. If the "
1222+ "generator exits without yielding another value, :meth:`~generator.__next__` "
1223+ "raises a :exc:`StopIteration` exception, signalling that iteration has "
1224+ "completed."
1225+ msgstr ""
1226+
1227+ msgid ""
1228+ "This method is normally called implicitly, for example by a :keyword:`for` "
1229+ "loop, or by the built-in :func:`next` function."
1230+ msgstr ""
1231+
1232+ msgid ""
1233+ "Generator iterators have a few more methods than generic iterators, which "
1234+ "can be used to control the execution of the underlying generator function:"
1235+ msgstr ""
1236+
1237+ msgid ""
1238+ "\" Sends\" a value into the generator function: the *value* argument becomes "
1239+ "the result of the current yield expression."
1240+ msgstr ""
1241+
1242+ msgid ""
1243+ "Otherwise, this method behaves like :meth:`~generator.__next__`: it resumes "
1244+ "the underlying function and either returns the next yielded value or raises :"
1245+ "exc:`StopIteration`."
1246+ msgstr ""
1247+
1248+ msgid ""
1249+ "When :meth:`send` is called to start the generator, it must be called with :"
1250+ "const:`None` as the argument, because there is no current yield expression "
1251+ "that could receive the value."
1252+ msgstr ""
1253+
1254+ msgid ""
1255+ "Raises an exception at the point where the generator is currently suspended."
1256+ msgstr ""
1257+
1258+ msgid ""
1259+ "Otherwise, this method behaves like :meth:`~generator.__next__`: it resumes "
1260+ "the underlying function and either returns the next yielded value or raises :"
1261+ "exc:`StopIteration`. If the generator function does not catch the passed-in "
1262+ "exception, or raises a different exception, then that exception propagates "
1263+ "to the caller."
1264+ msgstr ""
1265+
1266+ msgid ""
1267+ "When :meth:`throw` is called to start the generator, the generator "
1268+ "immediately exits (that is, subsequent calls to :meth:`~generator.__next__` "
1269+ "will raise :exc:`StopIteration`) and the thrown exception is propagated to :"
1270+ "meth:`throw`'s caller."
1271+ msgstr ""
1272+
1273+ msgid ""
1274+ "In typical use, this is called with a single argument, an exception "
1275+ "instance, similar to the way the :keyword:`raise` keyword is used."
1276+ msgstr ""
1277+
1278+ msgid ""
1279+ "For backwards compatibility, however, the second signature is supported, "
1280+ "following a convention from older versions of Python. The *type* argument "
1281+ "should be an exception class, and *value* should be an exception instance. "
1282+ "If the *value* is not provided, the *type* constructor is called to get an "
1283+ "instance. If *traceback* is provided, it is set on the exception, otherwise "
1284+ "any existing :attr:`~BaseException.__traceback__` attribute stored in "
1285+ "*value* may be cleared."
1286+ msgstr ""
1287+
1288+ msgid ""
1289+ "The second signature \\ (type\\ [, value\\ [, traceback\\ ]\\ ]\\ ) is deprecated "
1290+ "and may be removed in a future version of Python."
1291+ msgstr ""
1292+
1293+ msgid ""
1294+ "Raises a :exc:`GeneratorExit` exception at the point where the generator "
1295+ "function is currently suspended (equivalent to calling "
1296+ "``throw(GeneratorExit)``)."
1297+ msgstr ""
1298+
1299+ msgid ""
1300+ "If the generator function has already exited (due to an exception or normal "
1301+ "return), or raises :exc:`GeneratorExit` (by not catching the exception), :"
1302+ "meth:`close` returns :const:`None`. If the generator yields a value, a :exc:"
1303+ "`RuntimeError` is raised. If the generator raises any other exception, it is "
1304+ "propagated to the caller. If a generator returns a value upon being closed, "
1305+ "that value is returned by :meth:`close`."
1306+ msgstr ""
1307+
1308+ msgid ""
1309+ "When a generator iterator is garbage collected before it has exited, :meth:"
1310+ "`~generator.close` is called automatically."
1311+ msgstr ""
1312+
1313+ msgid ""
1314+ "If a generator returns a value upon being closed, the value is returned by :"
1315+ "meth:`close`. Previously, it returned ``None``."
1316+ msgstr ""
1317+
1318+ msgid ""
1319+ "Calling any of the generator methods (:meth:`~generator.__next__`, :meth:"
1320+ "`~generator.send`, :meth:`~generator.throw`, :meth:`~generator.close`) while "
1321+ "one of these methods is already executing raises a :exc:`ValueError` "
1322+ "exception."
1323+ msgstr ""
1324+
1325+ msgid "Asynchronous generator iterators"
1326+ msgstr ""
1327+
1328+ msgid ""
1329+ "This subsection describes the methods of an asynchronous generator iterator, "
1330+ "which are used to control the execution of an asynchronous generator "
1331+ "function."
11331332msgstr ""
11341333
11351334msgid ""
1136- "Python's :term:`generator`\\ s provide a convenient way to implement the "
1137- "iterator protocol. If a container object's :meth:`~object.__iter__` method "
1138- "is implemented as a generator, it will automatically return an iterator "
1139- "object (technically, a generator object) supplying the :meth:`~iterator."
1140- "__iter__` and :meth:`~generator.__next__` methods. More information about "
1141- "generators can be found in :ref:`the documentation for the yield expression "
1142- "<yieldexpr>`."
1335+ "Returns an :term:`awaitable` which when run starts to execute the "
1336+ "asynchronous generator function or resumes it at the :ref:`yield expression "
1337+ "<yieldexpr>` where the function is currently suspended. When an asynchronous "
1338+ "generator function is resumed with an :meth:`~agen.__anext__` method, the "
1339+ "current yield expression always evaluates to :const:`None` in the returned "
1340+ "awaitable, which when run will continue to the next yield expression. The "
1341+ "value of the expression after the :keyword:`yield` keyword is the value of "
1342+ "the :exc:`StopIteration` exception raised by the completing coroutine. If "
1343+ "the asynchronous generator exits without yielding another value, the "
1344+ "awaitable instead raises a :exc:`StopAsyncIteration` exception, signalling "
1345+ "that the asynchronous iteration has completed."
1346+ msgstr ""
1347+
1348+ msgid ""
1349+ "This method is normally called implicitly by an :keyword:`async for` loop, "
1350+ "or by the built-in :func:`anext` function."
1351+ msgstr ""
1352+
1353+ msgid ""
1354+ "Asynchronous generator-iterators have a few more methods than generic "
1355+ "asynchronous iterators, which can be used to control the execution of the "
1356+ "underlying generator function:"
1357+ msgstr ""
1358+
1359+ msgid ""
1360+ "Returns an awaitable which, when run, \" sends\" a value into the underlying "
1361+ "asynchronous generator function: the *value* argument becomes the result of "
1362+ "the current yield expression."
1363+ msgstr ""
1364+
1365+ msgid ""
1366+ "Otherwise, this method behaves like :meth:`~agen.__anext__`: when the "
1367+ "returned awaitable runs, it resumes the underlying function and either "
1368+ "returns the next yielded value as the value of the raised :exc:"
1369+ "`StopIteration`, or raises :exc:`StopAsyncIteration`."
1370+ msgstr ""
1371+
1372+ msgid ""
1373+ "When :meth:`asend` is called to start the asynchronous generator, it must be "
1374+ "called with :const:`None` as the argument, because there is no yield "
1375+ "expression that could receive the value."
1376+ msgstr ""
1377+
1378+ msgid ""
1379+ "Returns an awaitable that, when run, raises an exception at the point where "
1380+ "the underlying asynchronous generator function is currently suspended."
1381+ msgstr ""
1382+
1383+ msgid ""
1384+ "Otherwise, this method behaves like :meth:`~agen.__anext__`: when the "
1385+ "returned awaitable runs, it resumes the underlying function (with an "
1386+ "exception raised) and either returns the next yielded value as the value of "
1387+ "the raised :exc:`StopIteration`, or raises :exc:`StopAsyncIteration`. If the "
1388+ "underlying function does not catch the passed-in exception, or raises a "
1389+ "different exception, then when the awaitable is run, that exception "
1390+ "propagates to the caller of the awaitable."
1391+ msgstr ""
1392+
1393+ msgid ""
1394+ "When :meth:`~agen.athrow` is called to start the generator, the generator "
1395+ "exits when the awaitable runs (that is, subsequent results from :meth:`~agen."
1396+ "__anext__` will raise :exc:`StopAsyncIteration` when run) and the thrown "
1397+ "exception is propagated to the awaitable's caller."
1398+ msgstr ""
1399+
1400+ msgid ""
1401+ "For backwards compatibility, however, the second signature is supported. An "
1402+ "exception instance is created from three arguments in the same way as in :"
1403+ "meth:`generator.throw`."
1404+ msgstr ""
1405+
1406+ msgid ""
1407+ "Returns an awaitable that when run will throw a :exc:`GeneratorExit` into "
1408+ "the underlying asynchronous generator function at the point where it is "
1409+ "currently suspended (equivalent to calling ``athrow(GeneratorExit)``)."
1410+ msgstr ""
1411+
1412+ msgid ""
1413+ "If the asynchronous generator function then exits gracefully, is already "
1414+ "closed, or raises :exc:`GeneratorExit` (by not catching the exception), then "
1415+ "the returned awaitable will raise a :exc:`StopIteration` exception. Any "
1416+ "further awaitables returned by subsequent calls to the asynchronous "
1417+ "generator will raise a :exc:`StopAsyncIteration` exception."
1418+ msgstr ""
1419+
1420+ msgid ""
1421+ "If the asynchronous generator yields a value, a :exc:`RuntimeError` is "
1422+ "raised by the awaitable. If the asynchronous generator raises any other "
1423+ "exception, that exception is propagated to the caller of the awaitable."
1424+ msgstr ""
1425+
1426+ msgid ""
1427+ "If the asynchronous generator has already exited due to an exception or "
1428+ "normal exit, then further calls to :meth:`aclose` will return an awaitable "
1429+ "that does nothing."
11431430msgstr ""
11441431
11451432msgid "Sequence Types --- :class:`list`, :class:`tuple`, :class:`range`"
@@ -7788,6 +8075,24 @@ msgstr ""
77888075msgid "iteration over"
77898076msgstr ""
77908077
8078+ msgid "generator"
8079+ msgstr "generator"
8080+
8081+ msgid "exception"
8082+ msgstr ""
8083+
8084+ msgid "StopIteration"
8085+ msgstr ""
8086+
8087+ msgid "GeneratorExit"
8088+ msgstr ""
8089+
8090+ msgid "asynchronous-generator"
8091+ msgstr ""
8092+
8093+ msgid "StopAsyncIteration"
8094+ msgstr ""
8095+
77918096msgid "len"
77928097msgstr "len"
77938098
0 commit comments