@@ -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-10-11 18:31 +0000\n "
14+ "POT-Creation-Date : 2026-10-23 18:01 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:00+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Russian (https://app.transifex.com/python-doc/teams/5390/ "
@@ -95,34 +95,27 @@ msgid ""
9595"Python."
9696msgstr ""
9797
98- msgid "Describes a slot wrapper used by :c:func:`PyDescr_NewWrapper`."
98+ msgid ""
99+ "The type object for wrapper descriptor objects created by :c:func:"
100+ "`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`."
99101msgstr ""
100102
101103msgid ""
102- "Each ``wrapperbase`` record stores the Python-visible name and metadata for "
103- "a special method implemented by a type slot, together with the wrapper "
104- "function used to adapt that slot to Python's calling convention ."
104+ "Wrapper descriptors are used internally to expose special methods such as "
105+ "``__repr__`` or ``__add__``, which are implemented by type slots. The type "
106+ "is exposed in Python as :class:`types.WrapperDescriptorType` ."
105107msgstr ""
106108
107- msgid ""
108- "Create a new wrapper descriptor for extension type *type* from the :c:struct:"
109- "`wrapperbase` structure *base* and the wrapped slot function pointer "
110- "*wrapped*."
109+ msgid "Create a new wrapper descriptor of type :c:var:`PyWrapperDescr_Type`."
111110msgstr ""
112111
113112msgid ""
114- "Wrapper descriptors expose special methods implemented by type slots. This "
115- "is the same kind of descriptor that CPython creates for slot-based special "
116- "methods such as ``__repr__`` or ``__add__``, and it appears in Python as a :"
117- "class:`types.WrapperDescriptorType` object."
113+ "This function is meant for internal use only; it and related API (``struct "
114+ "wrapperbase`` and the ``PyWrapperFlag_KEYWORDS`` flag) are exposed publicly "
115+ "for backwards compatibility reasons."
118116msgstr ""
119117
120- msgid ""
121- "The type object for wrapper descriptor objects created by :c:func:"
122- "`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`. Wrapper descriptors are "
123- "used internally to expose special methods implemented via wrapper "
124- "structures, and appear in Python as :class:`types.WrapperDescriptorType` "
125- "objects."
118+ msgid "See :c:func:`PyCMethod_New` for wrapping a C function."
126119msgstr ""
127120
128121msgid ""
@@ -160,6 +153,31 @@ msgid ""
160153"``NULL`` with an exception set on failure."
161154msgstr ""
162155
156+ msgid ""
157+ "Return a :term:`borrowed reference` to the type that the descriptor *descr* "
158+ "belongs to. This is accessible as :attr:`~object.__objclass__` in Python."
159+ msgstr ""
160+
161+ msgid ""
162+ "*descr* must be a descriptor object created by one of the ``PyDescr_New*`` "
163+ "functions (an instance of :c:var:`PyMethodDescr_Type`, :c:var:"
164+ "`PyClassMethodDescr_Type`, :c:var:`PyMemberDescr_Type`, :c:var:"
165+ "`PyGetSetDescr_Type`, or :c:var:`PyWrapperDescr_Type`). If the passed "
166+ "descriptor is not an instance of one of these types, the behavior is "
167+ "undefined."
168+ msgstr ""
169+
170+ msgid ""
171+ "Return the name of the descriptor *descr* as a :term:`borrowed reference` to "
172+ "a :class:`str` object. This is available as :attr:`~definition.__name__` in "
173+ "Python."
174+ msgstr ""
175+
176+ msgid ""
177+ "*descr* must be a descriptor object created by one of the ``PyDescr_New*`` "
178+ "functions. If not, the behavior is undefined."
179+ msgstr ""
180+
163181msgid "This is a macro including the common fields for a descriptor object."
164182msgstr ""
165183
0 commit comments