|
8 | 8 | msgstr "" |
9 | 9 | "Project-Id-Version: Python 3.14\n" |
10 | 10 | "Report-Msgid-Bugs-To: \n" |
11 | | -"POT-Creation-Date: 2026-09-15 09:12+0000\n" |
| 11 | +"POT-Creation-Date: 2026-10-26 03:10+0000\n" |
12 | 12 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" |
13 | 13 | "Language-Team: German (https://app.transifex.com/python-doc/teams/5390/de/)\n" |
14 | 14 | "Language: de\n" |
@@ -46,8 +46,7 @@ msgid "" |
46 | 46 | msgstr "" |
47 | 47 |
|
48 | 48 | #: ../../c-api/descriptor.rst:26 ../../c-api/descriptor.rst:39 |
49 | | -#: ../../c-api/descriptor.rst:70 ../../c-api/descriptor.rst:101 |
50 | | -#: ../../c-api/descriptor.rst:123 |
| 49 | +#: ../../c-api/descriptor.rst:70 ../../c-api/descriptor.rst:119 |
51 | 50 | msgid "" |
52 | 51 | "On success, return a :term:`strong reference` to the descriptor. Return " |
53 | 52 | "``NULL`` with an exception set on failure." |
@@ -106,132 +105,154 @@ msgid "" |
106 | 105 | "Python." |
107 | 106 | msgstr "" |
108 | 107 |
|
109 | | -#: ../../c-api/descriptor.rst:83 |
110 | | -msgid "Describes a slot wrapper used by :c:func:`PyDescr_NewWrapper`." |
| 108 | +#: ../../c-api/descriptor.rst:82 |
| 109 | +msgid "" |
| 110 | +"The type object for wrapper descriptor objects created by :c:func:" |
| 111 | +"`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`." |
111 | 112 | msgstr "" |
112 | 113 |
|
113 | 114 | #: ../../c-api/descriptor.rst:85 |
114 | 115 | msgid "" |
115 | | -"Each ``wrapperbase`` record stores the Python-visible name and metadata for " |
116 | | -"a special method implemented by a type slot, together with the wrapper " |
117 | | -"function used to adapt that slot to Python's calling convention." |
| 116 | +"Wrapper descriptors are used internally to expose special methods such as " |
| 117 | +"``__repr__`` or ``__add__``, which are implemented by type slots. The type " |
| 118 | +"is exposed in Python as :class:`types.WrapperDescriptorType`." |
118 | 119 | msgstr "" |
119 | 120 |
|
120 | | -#: ../../c-api/descriptor.rst:91 |
121 | | -msgid "" |
122 | | -"Create a new wrapper descriptor for extension type *type* from the :c:struct:" |
123 | | -"`wrapperbase` structure *base* and the wrapped slot function pointer " |
124 | | -"*wrapped*." |
| 121 | +#: ../../c-api/descriptor.rst:101 |
| 122 | +msgid "Create a new wrapper descriptor of type :c:var:`PyWrapperDescr_Type`." |
125 | 123 | msgstr "" |
126 | 124 |
|
127 | | -#: ../../c-api/descriptor.rst:96 |
| 125 | +#: ../../c-api/descriptor.rst:103 |
128 | 126 | msgid "" |
129 | | -"Wrapper descriptors expose special methods implemented by type slots. This " |
130 | | -"is the same kind of descriptor that CPython creates for slot-based special " |
131 | | -"methods such as ``__repr__`` or ``__add__``, and it appears in Python as a :" |
132 | | -"class:`types.WrapperDescriptorType` object." |
| 127 | +"This function is meant for internal use only; it and related API (``struct " |
| 128 | +"wrapperbase`` and the ``PyWrapperFlag_KEYWORDS`` flag) are exposed publicly " |
| 129 | +"for backwards compatibility reasons." |
133 | 130 | msgstr "" |
134 | 131 |
|
135 | | -#: ../../c-api/descriptor.rst:106 |
136 | | -msgid "" |
137 | | -"The type object for wrapper descriptor objects created by :c:func:" |
138 | | -"`PyDescr_NewWrapper` and :c:func:`PyWrapper_New`. Wrapper descriptors are " |
139 | | -"used internally to expose special methods implemented via wrapper " |
140 | | -"structures, and appear in Python as :class:`types.WrapperDescriptorType` " |
141 | | -"objects." |
| 132 | +#: ../../c-api/descriptor.rst:107 |
| 133 | +msgid "See :c:func:`PyCMethod_New` for wrapping a C function." |
142 | 134 | msgstr "" |
143 | 135 |
|
144 | | -#: ../../c-api/descriptor.rst:115 |
| 136 | +#: ../../c-api/descriptor.rst:111 |
145 | 137 | msgid "" |
146 | 138 | "Create a new class method descriptor for extension type *type* from the :c:" |
147 | 139 | "type:`PyMethodDef` structure *method*." |
148 | 140 | msgstr "" |
149 | 141 |
|
150 | | -#: ../../c-api/descriptor.rst:118 |
| 142 | +#: ../../c-api/descriptor.rst:114 |
151 | 143 | msgid "" |
152 | 144 | "Class method descriptors expose C methods that receive the class rather than " |
153 | 145 | "an instance when accessed. This is the same kind of descriptor created for " |
154 | 146 | "``METH_CLASS`` entries in :c:member:`~PyTypeObject.tp_methods`, and it " |
155 | 147 | "appears in Python as a :class:`types.ClassMethodDescriptorType` object." |
156 | 148 | msgstr "" |
157 | 149 |
|
158 | | -#: ../../c-api/descriptor.rst:128 |
| 150 | +#: ../../c-api/descriptor.rst:124 |
159 | 151 | msgid "" |
160 | 152 | "Return non-zero if the descriptor object *descr* describes a data attribute, " |
161 | 153 | "or ``0`` if it describes a method. *descr* must be a descriptor object; " |
162 | 154 | "there is no error checking." |
163 | 155 | msgstr "" |
164 | 156 |
|
165 | | -#: ../../c-api/descriptor.rst:135 |
| 157 | +#: ../../c-api/descriptor.rst:131 |
166 | 158 | msgid "" |
167 | 159 | "Create a new bound wrapper object from the wrapper descriptor *d* and the " |
168 | 160 | "instance *self*." |
169 | 161 | msgstr "" |
170 | 162 |
|
171 | | -#: ../../c-api/descriptor.rst:138 |
| 163 | +#: ../../c-api/descriptor.rst:134 |
172 | 164 | msgid "" |
173 | 165 | "This is the bound form of a wrapper descriptor created by :c:func:" |
174 | 166 | "`PyDescr_NewWrapper`. CPython creates these objects when a slot wrapper is " |
175 | 167 | "accessed through an instance, and they appear in Python as :class:`types." |
176 | 168 | "MethodWrapperType` objects." |
177 | 169 | msgstr "" |
178 | 170 |
|
179 | | -#: ../../c-api/descriptor.rst:143 |
| 171 | +#: ../../c-api/descriptor.rst:139 |
180 | 172 | msgid "" |
181 | 173 | "On success, return a :term:`strong reference` to the wrapper object. Return " |
182 | 174 | "``NULL`` with an exception set on failure." |
183 | 175 | msgstr "" |
184 | 176 |
|
185 | | -#: ../../c-api/descriptor.rst:147 |
| 177 | +#: ../../c-api/descriptor.rst:144 |
| 178 | +msgid "" |
| 179 | +"Return a :term:`borrowed reference` to the type that the descriptor *descr* " |
| 180 | +"belongs to. This is accessible as :attr:`~object.__objclass__` in Python." |
| 181 | +msgstr "" |
| 182 | + |
| 183 | +#: ../../c-api/descriptor.rst:148 |
| 184 | +msgid "" |
| 185 | +"*descr* must be a descriptor object created by one of the ``PyDescr_New*`` " |
| 186 | +"functions (an instance of :c:var:`PyMethodDescr_Type`, :c:var:" |
| 187 | +"`PyClassMethodDescr_Type`, :c:var:`PyMemberDescr_Type`, :c:var:" |
| 188 | +"`PyGetSetDescr_Type`, or :c:var:`PyWrapperDescr_Type`). If the passed " |
| 189 | +"descriptor is not an instance of one of these types, the behavior is " |
| 190 | +"undefined." |
| 191 | +msgstr "" |
| 192 | + |
| 193 | +#: ../../c-api/descriptor.rst:158 |
| 194 | +msgid "" |
| 195 | +"Return the name of the descriptor *descr* as a :term:`borrowed reference` to " |
| 196 | +"a :class:`str` object. This is available as :attr:`~definition.__name__` in " |
| 197 | +"Python." |
| 198 | +msgstr "" |
| 199 | + |
| 200 | +#: ../../c-api/descriptor.rst:162 |
| 201 | +msgid "" |
| 202 | +"*descr* must be a descriptor object created by one of the ``PyDescr_New*`` " |
| 203 | +"functions. If not, the behavior is undefined." |
| 204 | +msgstr "" |
| 205 | + |
| 206 | +#: ../../c-api/descriptor.rst:167 |
186 | 207 | msgid "Built-in descriptors" |
187 | 208 | msgstr "" |
188 | 209 |
|
189 | | -#: ../../c-api/descriptor.rst:151 |
| 210 | +#: ../../c-api/descriptor.rst:171 |
190 | 211 | msgid "" |
191 | 212 | "The type object for super objects. This is the same object as :class:`super` " |
192 | 213 | "in the Python layer." |
193 | 214 | msgstr "" |
194 | 215 |
|
195 | | -#: ../../c-api/descriptor.rst:157 |
| 216 | +#: ../../c-api/descriptor.rst:177 |
196 | 217 | msgid "" |
197 | 218 | "The type of class method objects. This is the same object as :class:" |
198 | 219 | "`classmethod` in the Python layer." |
199 | 220 | msgstr "" |
200 | 221 |
|
201 | | -#: ../../c-api/descriptor.rst:163 |
| 222 | +#: ../../c-api/descriptor.rst:183 |
202 | 223 | msgid "" |
203 | 224 | "The type object for C-level class method descriptor objects. This is the " |
204 | 225 | "type of the descriptors created for :func:`classmethod` defined in C " |
205 | 226 | "extension types, and corresponds to :class:`types.ClassMethodDescriptorType` " |
206 | 227 | "objects in Python." |
207 | 228 | msgstr "" |
208 | 229 |
|
209 | | -#: ../../c-api/descriptor.rst:171 |
| 230 | +#: ../../c-api/descriptor.rst:191 |
210 | 231 | msgid "" |
211 | 232 | "Create a new :class:`classmethod` object wrapping *callable*. *callable* " |
212 | 233 | "must be a callable object and must not be ``NULL``." |
213 | 234 | msgstr "" |
214 | 235 |
|
215 | | -#: ../../c-api/descriptor.rst:174 |
| 236 | +#: ../../c-api/descriptor.rst:194 |
216 | 237 | msgid "" |
217 | 238 | "On success, this function returns a :term:`strong reference` to a new class " |
218 | 239 | "method descriptor. On failure, this function returns ``NULL`` with an " |
219 | 240 | "exception set." |
220 | 241 | msgstr "" |
221 | 242 |
|
222 | | -#: ../../c-api/descriptor.rst:181 |
| 243 | +#: ../../c-api/descriptor.rst:201 |
223 | 244 | msgid "" |
224 | 245 | "The type of static method objects. This is the same object as :class:" |
225 | 246 | "`staticmethod` in the Python layer." |
226 | 247 | msgstr "" |
227 | 248 |
|
228 | | -#: ../../c-api/descriptor.rst:187 |
| 249 | +#: ../../c-api/descriptor.rst:207 |
229 | 250 | msgid "" |
230 | 251 | "Create a new :class:`staticmethod` object wrapping *callable*. *callable* " |
231 | 252 | "must be a callable object and must not be ``NULL``." |
232 | 253 | msgstr "" |
233 | 254 |
|
234 | | -#: ../../c-api/descriptor.rst:190 |
| 255 | +#: ../../c-api/descriptor.rst:210 |
235 | 256 | msgid "" |
236 | 257 | "On success, this function returns a :term:`strong reference` to a new static " |
237 | 258 | "method descriptor. On failure, this function returns ``NULL`` with an " |
|
0 commit comments