Skip to content

Commit 1d2d548

Browse files
committed
Merge branch 'main' into gh-117376-deferred-rc
2 parents f8add0e + c50cb6d commit 1d2d548

Some content is hidden

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

61 files changed

+2129
-740
lines changed

‎Doc/library/decimal.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ are also included in the pure Python version for compatibility.
15171517
the C version uses a thread-local rather than a coroutine-local context and the value
15181518
is ``False``. This is slightly faster in some nested context scenarios.
15191519

1520-
.. versionadded:: 3.8.3
1520+
.. versionadded:: 3.8.3
15211521

15221522

15231523
Rounding modes

‎Doc/library/ipaddress.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,14 @@ write code that handles both IP versions correctly. Address objects are
334334
.. attribute:: is_multicast
335335
.. attribute:: is_private
336336
.. attribute:: is_global
337+
338+
.. versionadded:: 3.4
339+
337340
.. attribute:: is_unspecified
338341
.. attribute:: is_reserved
339342
.. attribute:: is_loopback
340343
.. attribute:: is_link_local
341344

342-
.. versionadded:: 3.4
343-
is_global
344-
345345
.. attribute:: is_site_local
346346

347347
``True`` if the address is reserved for site-local usage. Note that

‎Doc/library/ssl.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ to speed up repeated connections from the same clients.
18201820
.. versionchanged:: 3.6
18211821
*session* argument was added.
18221822

1823-
.. versionchanged:: 3.7
1823+
.. versionchanged:: 3.7
18241824
The method returns an instance of :attr:`SSLContext.sslsocket_class`
18251825
instead of hard-coded :class:`SSLSocket`.
18261826

‎Doc/library/urllib.request.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ The :mod:`urllib.request` module defines the following functions:
113113
``http/1.1`` when no *context* is given. Custom *context* should set
114114
ALPN protocols with :meth:`~ssl.SSLContext.set_alpn_protocols`.
115115

116-
.. versionchanged:: 3.13
117-
Remove *cafile*, *capath* and *cadefault* parameters: use the *context*
118-
parameter instead.
116+
.. versionchanged:: 3.13
117+
Remove *cafile*, *capath* and *cadefault* parameters: use the *context*
118+
parameter instead.
119119

120120

121121
.. function:: install_opener(opener)

‎Include/internal/pycore_bytes_methods.h‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ extern void _Py_bytes_title(char *result, const char *s, Py_ssize_t len);
2626
extern void _Py_bytes_capitalize(char *result, const char *s, Py_ssize_t len);
2727
extern void _Py_bytes_swapcase(char *result, const char *s, Py_ssize_t len);
2828

29-
extern PyObject *_Py_bytes_find(const char *str, Py_ssize_t len, PyObject *args);
30-
extern PyObject *_Py_bytes_index(const char *str, Py_ssize_t len, PyObject *args);
31-
extern PyObject *_Py_bytes_rfind(const char *str, Py_ssize_t len, PyObject *args);
32-
extern PyObject *_Py_bytes_rindex(const char *str, Py_ssize_t len, PyObject *args);
33-
extern PyObject *_Py_bytes_count(const char *str, Py_ssize_t len, PyObject *args);
29+
extern PyObject *_Py_bytes_find(const char *str, Py_ssize_t len, PyObject *sub,
30+
Py_ssize_t start, Py_ssize_t end);
31+
extern PyObject *_Py_bytes_index(const char *str, Py_ssize_t len, PyObject *sub,
32+
Py_ssize_t start, Py_ssize_t end);
33+
extern PyObject *_Py_bytes_rfind(const char *str, Py_ssize_t len, PyObject *sub,
34+
Py_ssize_t start, Py_ssize_t end);
35+
extern PyObject *_Py_bytes_rindex(const char *str, Py_ssize_t len, PyObject *sub,
36+
Py_ssize_t start, Py_ssize_t end);
37+
extern PyObject *_Py_bytes_count(const char *str, Py_ssize_t len, PyObject *sub,
38+
Py_ssize_t start, Py_ssize_t end);
3439
extern int _Py_bytes_contains(const char *str, Py_ssize_t len, PyObject *arg);
3540
extern PyObject *_Py_bytes_startswith(const char *str, Py_ssize_t len,
3641
PyObject *subobj, Py_ssize_t start,

‎Include/internal/pycore_crossinterp.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ PyAPI_FUNC(int) _PyXI_HasCapturedException(_PyXI_session *session);
325325
// Export for _testinternalcapi shared extension
326326
PyAPI_FUNC(PyInterpreterState *) _PyXI_NewInterpreter(
327327
PyInterpreterConfig *config,
328+
long *maybe_whence,
328329
PyThreadState **p_tstate,
329330
PyThreadState **p_save_tstate);
330331
PyAPI_FUNC(void) _PyXI_EndInterpreter(

‎Include/internal/pycore_global_objects_fini_generated.h‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Include/internal/pycore_global_strings.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ struct _Py_global_strings {
764764
STRUCT_FOR_ID(version)
765765
STRUCT_FOR_ID(volume)
766766
STRUCT_FOR_ID(wait_all)
767+
STRUCT_FOR_ID(warn_on_full_buffer)
767768
STRUCT_FOR_ID(warnings)
768769
STRUCT_FOR_ID(warnoptions)
769770
STRUCT_FOR_ID(wbits)

‎Include/internal/pycore_interp.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ struct _is {
109109
#define _PyInterpreterState_WHENCE_LEGACY_CAPI 2
110110
#define _PyInterpreterState_WHENCE_CAPI 3
111111
#define _PyInterpreterState_WHENCE_XI 4
112-
#define _PyInterpreterState_WHENCE_MAX 4
112+
#define _PyInterpreterState_WHENCE_STDLIB 5
113+
#define _PyInterpreterState_WHENCE_MAX 5
113114
long _whence;
114115

115116
/* Has been initialized to a safe state.
@@ -316,6 +317,8 @@ PyAPI_FUNC(int) _PyInterpreterState_IDInitref(PyInterpreterState *);
316317
PyAPI_FUNC(int) _PyInterpreterState_IDIncref(PyInterpreterState *);
317318
PyAPI_FUNC(void) _PyInterpreterState_IDDecref(PyInterpreterState *);
318319

320+
PyAPI_FUNC(int) _PyInterpreterState_IsReady(PyInterpreterState *interp);
321+
319322
PyAPI_FUNC(long) _PyInterpreterState_GetWhence(PyInterpreterState *interp);
320323
extern void _PyInterpreterState_SetWhence(
321324
PyInterpreterState *interp,

‎Include/internal/pycore_runtime_init_generated.h‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)