Skip to content

Commit 417de5d

Browse files
author
github-actions[bot]
committed
[3.12] gh-127954: Document PyObject_DelItemString (GH-127986) (#128497)
(cherry picked from commit 8ade15343d5daec3bf79ff7c47f03726fb2bcadf) Co-authored-by: RUANG (James Roy) <[email protected]> CPython-sync-commit-latest: e1a20910dc6857df558bb9fb7e49c75405b09f06
1 parent 1a94473 commit 417de5d

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.pot/latest/c-api/object.pot

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-01-02 07:37+0000\n"
11+
"POT-Creation-Date: 2025-01-04 21:16+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -247,54 +247,58 @@ msgid "Remove the mapping for the object *key* from the object *o*. Return ``-1
247247
msgstr ""
248248

249249
#: ../../c-api/object.rst:398
250+
msgid "This is the same as :c:func:`PyObject_DelItem`, but *key* is specified as a :c:expr:`const char*` UTF-8 encoded bytes string, rather than a :c:expr:`PyObject*`."
251+
msgstr ""
252+
253+
#: ../../c-api/object.rst:405
250254
msgid "This is equivalent to the Python expression ``dir(o)``, returning a (possibly empty) list of strings appropriate for the object argument, or ``NULL`` if there was an error. If the argument is ``NULL``, this is like the Python ``dir()``, returning the names of the current locals; in this case, if no execution frame is active then ``NULL`` is returned but :c:func:`PyErr_Occurred` will return false."
251255
msgstr ""
252256

253-
#: ../../c-api/object.rst:407
257+
#: ../../c-api/object.rst:414
254258
msgid "This is equivalent to the Python expression ``iter(o)``. It returns a new iterator for the object argument, or the object itself if the object is already an iterator. Raises :exc:`TypeError` and returns ``NULL`` if the object cannot be iterated."
255259
msgstr ""
256260

257-
#: ../../c-api/object.rst:415
261+
#: ../../c-api/object.rst:422
258262
msgid "This is equivalent to the Python ``__iter__(self): return self`` method. It is intended for :term:`iterator` types, to be used in the :c:member:`PyTypeObject.tp_iter` slot."
259263
msgstr ""
260264

261-
#: ../../c-api/object.rst:421
265+
#: ../../c-api/object.rst:428
262266
msgid "This is the equivalent to the Python expression ``aiter(o)``. Takes an :class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. This is typically a new iterator but if the argument is an :class:`AsyncIterator`, this returns itself. Raises :exc:`TypeError` and returns ``NULL`` if the object cannot be iterated."
263267
msgstr ""
264268

265-
#: ../../c-api/object.rst:431
269+
#: ../../c-api/object.rst:438
266270
msgid "Get a pointer to subclass-specific data reserved for *cls*."
267271
msgstr ""
268272

269-
#: ../../c-api/object.rst:433
273+
#: ../../c-api/object.rst:440
270274
msgid "The object *o* must be an instance of *cls*, and *cls* must have been created using negative :c:member:`PyType_Spec.basicsize`. Python does not check this."
271275
msgstr ""
272276

273-
#: ../../c-api/object.rst:437
277+
#: ../../c-api/object.rst:444
274278
msgid "On error, set an exception and return ``NULL``."
275279
msgstr ""
276280

277-
#: ../../c-api/object.rst:443
281+
#: ../../c-api/object.rst:450
278282
msgid "Return the size of the instance memory space reserved for *cls*, i.e. the size of the memory :c:func:`PyObject_GetTypeData` returns."
279283
msgstr ""
280284

281-
#: ../../c-api/object.rst:446
285+
#: ../../c-api/object.rst:453
282286
msgid "This may be larger than requested using :c:member:`-PyType_Spec.basicsize <PyType_Spec.basicsize>`; it is safe to use this larger size (e.g. with :c:func:`!memset`)."
283287
msgstr ""
284288

285-
#: ../../c-api/object.rst:449
289+
#: ../../c-api/object.rst:456
286290
msgid "The type *cls* **must** have been created using negative :c:member:`PyType_Spec.basicsize`. Python does not check this."
287291
msgstr ""
288292

289-
#: ../../c-api/object.rst:453
293+
#: ../../c-api/object.rst:460
290294
msgid "On error, set an exception and return a negative value."
291295
msgstr ""
292296

293-
#: ../../c-api/object.rst:459
297+
#: ../../c-api/object.rst:466
294298
msgid "Get a pointer to per-item data for a class with :c:macro:`Py_TPFLAGS_ITEMS_AT_END`."
295299
msgstr ""
296300

297-
#: ../../c-api/object.rst:462
301+
#: ../../c-api/object.rst:469
298302
msgid "On error, set an exception and return ``NULL``. :py:exc:`TypeError` is raised if *o* does not have :c:macro:`Py_TPFLAGS_ITEMS_AT_END` set."
299303
msgstr ""
300304

0 commit comments

Comments
 (0)