@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.15\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-05-08 18:34 +0000\n "
14+ "POT-Creation-Date : 2026-06-15 18:22 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:02+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Russian (https://app.transifex.com/python-doc/teams/5390/ru/)\n "
@@ -590,7 +590,7 @@ msgid ""
590590msgstr ""
591591
592592#: ../../library/warnings.rst:337 ../../library/warnings.rst:379
593- #: ../../library/warnings.rst:647
593+ #: ../../library/warnings.rst:666
594594msgid ""
595595"See :ref:`warning-concurrent-safe` for details on the concurrency-safety of "
596596"the :class:`catch_warnings` context manager when used in programs using "
@@ -942,41 +942,90 @@ msgid ""
942942":const:`False` (the default) the context manager returns :class:`None` on "
943943"entry. If *record* is :const:`True`, a list is returned that is "
944944"progressively populated with objects as seen by a custom :func:`showwarning`"
945- " function (which also suppresses output to ``sys.stdout``). Each object in "
946- "the list has attributes with the same names as the arguments to "
947- ":func:`showwarning`."
945+ " function (which also suppresses output to ``sys.stderr``). Each object in "
946+ "the list is guaranteed to have the following attributes:"
947+ msgstr ""
948+
949+ #: ../../library/warnings.rst:632
950+ msgid "``message``: the warning message (an instance of :exc:`Warning`)"
948951msgstr ""
949952
950953#: ../../library/warnings.rst:633
954+ msgid "``category``: the warning category (a subclass of :exc:`Warning`)"
955+ msgstr ""
956+
957+ #: ../../library/warnings.rst:634
958+ msgid "``filename``: the file name where the warning occurred (:class:`str`)"
959+ msgstr ""
960+
961+ #: ../../library/warnings.rst:635
962+ msgid "``lineno``: the line number in the file (:class:`int`)"
963+ msgstr ""
964+
965+ #: ../../library/warnings.rst:636
966+ msgid "``file``: the file object used for output (if any), or ``None``"
967+ msgstr ""
968+
969+ #: ../../library/warnings.rst:637
970+ msgid "``line``: the line of source code (if available), or ``None``"
971+ msgstr ""
972+
973+ #: ../../library/warnings.rst:638
974+ msgid ""
975+ "``source``: the original object that generated the warning (if available), "
976+ "or ``None``"
977+ msgstr ""
978+
979+ #: ../../library/warnings.rst:640
980+ msgid ""
981+ "``module``: the module name where the warning occurred (:class:`str`), or "
982+ "``None``"
983+ msgstr ""
984+
985+ #: ../../library/warnings.rst:643
986+ msgid "The ``source`` attribute was added."
987+ msgstr ""
988+
989+ #: ../../library/warnings.rst:646
990+ msgid "The ``module`` attribute was added."
991+ msgstr ""
992+
993+ #: ../../library/warnings.rst:649
994+ msgid ""
995+ "The type of these objects is not specified and may change; only the presence"
996+ " of these attributes is guaranteed."
997+ msgstr ""
998+
999+ #: ../../library/warnings.rst:652
9511000msgid ""
9521001"The *module* argument takes a module that will be used instead of the module"
9531002" returned when you import :mod:`!warnings` whose filter will be protected. "
9541003"This argument exists primarily for testing the :mod:`!warnings` module "
9551004"itself."
9561005msgstr ""
9571006
958- #: ../../library/warnings.rst:638
1007+ #: ../../library/warnings.rst:657
9591008msgid ""
9601009"If the *action* argument is not ``None``, the remaining arguments are passed"
9611010" to :func:`simplefilter` as if it were called immediately on entering the "
9621011"context."
9631012msgstr ""
9641013
965- #: ../../library/warnings.rst:642
1014+ #: ../../library/warnings.rst:661
9661015msgid ""
9671016"See :ref:`warning-filter` for the meaning of the *category* and *lineno* "
9681017"parameters."
9691018msgstr ""
9701019
971- #: ../../library/warnings.rst:654
1020+ #: ../../library/warnings.rst:673
9721021msgid "Added the *action*, *category*, *lineno*, and *append* parameters."
9731022msgstr ""
9741023
975- #: ../../library/warnings.rst:660
1024+ #: ../../library/warnings.rst:679
9761025msgid "Concurrent safety of Context Managers"
9771026msgstr ""
9781027
979- #: ../../library/warnings.rst:662
1028+ #: ../../library/warnings.rst:681
9801029msgid ""
9811030"The behavior of :class:`catch_warnings` context manager depends on the "
9821031":data:`sys.flags.context_aware_warnings` flag. If the flag is true, the "
@@ -987,7 +1036,7 @@ msgid ""
9871036" to true for free-threaded builds and false otherwise."
9881037msgstr ""
9891038
990- #: ../../library/warnings.rst:670
1039+ #: ../../library/warnings.rst:689
9911040msgid ""
9921041"If the :data:`~sys.flags.context_aware_warnings` flag is false, then "
9931042":class:`catch_warnings` will modify the global attributes of the "
@@ -997,7 +1046,7 @@ msgid ""
9971046"time, the behavior is undefined."
9981047msgstr ""
9991048
1000- #: ../../library/warnings.rst:677
1049+ #: ../../library/warnings.rst:696
10011050msgid ""
10021051"If the flag is true, :class:`catch_warnings` will not modify global "
10031052"attributes and will instead use a :class:`~contextvars.ContextVar` to store "
@@ -1006,30 +1055,30 @@ msgid ""
10061055"safe."
10071056msgstr ""
10081057
1009- #: ../../library/warnings.rst:683
1058+ #: ../../library/warnings.rst:702
10101059msgid ""
10111060"The *record* parameter of the context handler also behaves differently "
10121061"depending on the value of the flag. When *record* is true and the flag is "
10131062"false, the context manager works by replacing and then later restoring the "
10141063"module's :func:`showwarning` function. That is not concurrent-safe."
10151064msgstr ""
10161065
1017- #: ../../library/warnings.rst:688
1066+ #: ../../library/warnings.rst:707
10181067msgid ""
10191068"When *record* is true and the flag is true, the :func:`showwarning` function"
10201069" is not replaced. Instead, the recording status is indicated by an internal"
10211070" property in the context variable. In this case, the :func:`showwarning` "
10221071"function will not be restored when exiting the context handler."
10231072msgstr ""
10241073
1025- #: ../../library/warnings.rst:693
1074+ #: ../../library/warnings.rst:712
10261075msgid ""
10271076"The :data:`~sys.flags.context_aware_warnings` flag can be set the "
10281077":option:`-X context_aware_warnings<-X>` command-line option or by the "
10291078":envvar:`PYTHON_CONTEXT_AWARE_WARNINGS` environment variable."
10301079msgstr ""
10311080
1032- #: ../../library/warnings.rst:699
1081+ #: ../../library/warnings.rst:718
10331082msgid ""
10341083"It is likely that most programs that desire thread-safe behaviour of the "
10351084"warnings module will also want to set the "
@@ -1042,7 +1091,7 @@ msgid ""
10421091"by a :class:`catch_warnings` context manager will no longer be active."
10431092msgstr ""
10441093
1045- #: ../../library/warnings.rst:712
1094+ #: ../../library/warnings.rst:731
10461095msgid ""
10471096"Added the :data:`sys.flags.context_aware_warnings` flag and the use of a "
10481097"context variable for :class:`catch_warnings` if the flag is true. Previous "
0 commit comments