Skip to content

Commit b2ce555

Browse files
committed
Merge remote-tracking branch 'upstream/main' into gh-114258-getitem
2 parents 0bd4000 + 5a17b2e commit b2ce555

112 files changed

Lines changed: 4880 additions & 952 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Doc/c-api/code.rst‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ bound into a function.
176176
177177
.. versionadded:: 3.12
178178
179+
.. c:macro:: PY_FOREACH_CODE_EVENT(V)
180+
181+
Apply the macro *V* to each suffix of :c:type:`PyCodeEvent`
182+
constants.
183+
Currently expands to ``V(CREATE) V(DESTROY)``.
184+
The macro *V* must accept one event name and supply any punctuation
185+
needed between expansions.
186+
179187
.. c:type:: int (*PyCode_WatchCallback)(PyCodeEvent event, PyCodeObject* co)
180188
181189
Type of a code object watcher callback function.

‎Doc/c-api/conversion.rst‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,23 @@ The argument must be a signed or unsigned :c:expr:`char`.
258258
.. c:macro:: Py_TOUPPER(c)
259259
260260
Return the uppercase equivalent of the character *c*.
261+
262+
263+
Bit masks
264+
---------
265+
266+
The following constants are bit masks used by the character classification
267+
macros above:
268+
269+
.. c:macro:: PY_CTF_ALNUM
270+
PY_CTF_ALPHA
271+
PY_CTF_DIGIT
272+
PY_CTF_LOWER
273+
PY_CTF_SPACE
274+
PY_CTF_UPPER
275+
PY_CTF_XDIGIT
276+
277+
Values used internally by the ``Py_IS*`` classification macros above.
278+
Exposed for backwards compatibility only.
279+
280+
.. soft-deprecated:: next

‎Doc/c-api/dict.rst‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,15 @@ Dictionary objects
563563
564564
.. versionadded:: 3.12
565565
566+
.. c:macro:: PY_FOREACH_DICT_EVENT(V)
567+
568+
Apply the macro *V* to each suffix of :c:type:`PyDict_WatchEvent`
569+
constants.
570+
Currently expands to ``V(ADDED) V(MODIFIED) V(DELETED) V(CLONED)
571+
V(CLEARED) V(DEALLOCATED)``.
572+
The macro *V* must accept one event name and supply any punctuation
573+
needed between expansions.
574+
566575
.. c:type:: int (*PyDict_WatchCallback)(PyDict_WatchEvent event, PyObject *dict, PyObject *key, PyObject *new_value)
567576
568577
Type of a dict watcher callback function.

0 commit comments

Comments
 (0)