Skip to content

Commit 3165ff7

Browse files
itamarofacebook-github-bot
authored andcommitted
Import upstream CPython 3.14 (rc1 release!)
Summary: Python `3.14.0rc1+` was released on 2025-07-22 18:54:14+00:00. Base: (`3.14.0b4+`) - `c59a60bdb48120fe7b7ba65507448db358b6671d` (release date: 2025-07-22 10:32:00+00:00) Imported: (`3.14.0rc1+`) - `9f25781bf9b4e14cdc7a165a6bc1c15cf7d736e5` (release date: 2025-07-22 18:54:14+00:00) # Files added ``` Misc/NEWS.d/3.14.0rc1.rst Tools/wasm/emscripten/wasm_assets.py Tools/wasm/emscripten/web_example/index.html Tools/wasm/emscripten/web_example_pyrepl_jspi/index.html Tools/wasm/emscripten/web_example_pyrepl_jspi/src.mjs ``` # Files removed https://www.internalfb.com/intern/everpaste/?color=0&handle=GA59Gh-xhwDEqWwOAMvLWveSDHIJbr0LAAAz Reviewed By: bowiechen Differential Revision: D78804514 fbshipit-source-id: dc132d00e896008168843b148547b02e3424a3e7
1 parent 3dafbe9 commit 3165ff7

66 files changed

Lines changed: 1636 additions & 690 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/arg.rst

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,14 @@ There are three ways strings and buffers can be converted to C:
113113
``z`` (:class:`str` or ``None``) [const char \*]
114114
Like ``s``, but the Python object may also be ``None``, in which case the C
115115
pointer is set to ``NULL``.
116-
It is the same as ``s?`` with the C pointer was initialized to ``NULL``.
117116

118117
``z*`` (:class:`str`, :term:`bytes-like object` or ``None``) [Py_buffer]
119118
Like ``s*``, but the Python object may also be ``None``, in which case the
120119
``buf`` member of the :c:type:`Py_buffer` structure is set to ``NULL``.
121-
It is the same as ``s*?`` with the ``buf`` member of the :c:type:`Py_buffer`
122-
structure was initialized to ``NULL``.
123120

124121
``z#`` (:class:`str`, read-only :term:`bytes-like object` or ``None``) [const char \*, :c:type:`Py_ssize_t`]
125122
Like ``s#``, but the Python object may also be ``None``, in which case the C
126123
pointer is set to ``NULL``.
127-
It is the same as ``s#?`` with the C pointer was initialized to ``NULL``.
128124

129125
``y`` (read-only :term:`bytes-like object`) [const char \*]
130126
This format converts a bytes-like object to a C pointer to a
@@ -387,17 +383,6 @@ Other objects
387383
Non-tuple sequences are deprecated if *items* contains format units
388384
which store a borrowed buffer or a borrowed reference.
389385

390-
``unit?`` (anything or ``None``) [*matching-variable(s)*]
391-
``?`` modifies the behavior of the preceding format unit.
392-
The C variable(s) corresponding to that parameter should be initialized
393-
to their default value --- when the argument is ``None``,
394-
:c:func:`PyArg_ParseTuple` does not touch the contents of the corresponding
395-
C variable(s).
396-
If the argument is not ``None``, it is parsed according to the specified
397-
format unit.
398-
399-
.. versionadded:: 3.14
400-
401386
A few other characters have a meaning in a format string. These may not occur
402387
inside nested parentheses. They are:
403388

Doc/library/annotationlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ code execution even with no access to any globals or builtins. For example:
511511
512512
>>> def f(x: (1).__class__.__base__.__subclasses__()[-1].__init__.__builtins__["print"]("Hello world")): pass
513513
...
514-
>>> annotationlib.get_annotations(f, format=annotationlib.Format.SOURCE)
514+
>>> annotationlib.get_annotations(f, format=annotationlib.Format.STRING)
515515
Hello world
516516
{'x': 'None'}
517517

0 commit comments

Comments
 (0)