Skip to content

Commit 48e4796

Browse files
Merge branch 'main' into gh-129515-ifexp-syntax-error
2 parents b43b3a2 + 8d9d3e4 commit 48e4796

33 files changed

+975
-474
lines changed

.github/workflows/tail-call.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ on:
55
- 'Python/bytecodes.c'
66
- 'Python/ceval.c'
77
- 'Python/ceval_macros.h'
8+
- 'Python/generated_cases.c.h'
89
push:
910
paths:
1011
- 'Python/bytecodes.c'
1112
- 'Python/ceval.c'
1213
- 'Python/ceval_macros.h'
14+
- 'Python/generated_cases.c.h'
1315
workflow_dispatch:
1416

1517
permissions:

Doc/c-api/unicode.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,13 @@ the user settings on the machine running the codec.
13521352
in *consumed*.
13531353
13541354
1355+
.. c:function:: PyObject* PyUnicode_DecodeCodePageStateful(int code_page, const char *str, \
1356+
Py_ssize_t size, const char *errors, Py_ssize_t *consumed)
1357+
1358+
Similar to :c:func:`PyUnicode_DecodeMBCSStateful`, except uses the code page
1359+
specified by *code_page*.
1360+
1361+
13551362
.. c:function:: PyObject* PyUnicode_AsMBCSString(PyObject *unicode)
13561363
13571364
Encode a Unicode object using MBCS and return the result as Python bytes

Doc/data/refcounts.dat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,6 +2636,13 @@ PyUnicode_DecodeMBCSStateful:Py_ssize_t:size::
26362636
PyUnicode_DecodeMBCSStateful:const char*:errors::
26372637
PyUnicode_DecodeMBCSStateful:Py_ssize_t*:consumed::
26382638

2639+
PyUnicode_DecodeCodePageStateful:PyObject*::+1:
2640+
PyUnicode_DecodeCodePageStateful:int:code_page::
2641+
PyUnicode_DecodeCodePageStateful:const char*:s::
2642+
PyUnicode_DecodeCodePageStateful:Py_ssize_t:size::
2643+
PyUnicode_DecodeCodePageStateful:const char*:errors::
2644+
PyUnicode_DecodeCodePageStateful:Py_ssize_t*:consumed::
2645+
26392646
PyUnicode_EncodeCodePage:PyObject*::+1:
26402647
PyUnicode_EncodeCodePage:int:code_page::
26412648
PyUnicode_EncodeCodePage:PyObject*:unicode:0:

Doc/library/enum.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ Data Types
668668
* the result is a valid *IntFlag*: an *IntFlag* is returned
669669
* the result is not a valid *IntFlag*: the result depends on the :class:`FlagBoundary` setting
670670

671-
The :func:`repr` of unnamed zero-valued flags has changed. It is now:
671+
The :func:`repr` of unnamed zero-valued flags has changed. It is now::
672672

673673
>>> Color(0)
674674
<Color: 0>

Doc/library/logging.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,12 @@ subclasses. However, the :meth:`!__init__` method in subclasses needs to call
592592

593593
.. method:: Handler.close()
594594

595-
Tidy up any resources used by the handler. This version does no output but
596-
removes the handler from an internal list of handlers which is closed when
597-
:func:`shutdown` is called. Subclasses should ensure that this gets called
598-
from overridden :meth:`close` methods.
595+
Tidy up any resources used by the handler. This version does no output
596+
but removes the handler from an internal map of handlers, which is used
597+
for handler lookup by name.
598+
599+
Subclasses should ensure that this gets called from overridden :meth:`close`
600+
methods.
599601

600602

601603
.. method:: Handler.handle(record)

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ Deprecated
933933
(Contributed by Victor Stinner in :gh:`120743`.)
934934

935935
* :mod:`pdb`:
936-
The undocumented ``pdb.Pdb.curframe_locals`` attribtue is now a deprecated
936+
The undocumented ``pdb.Pdb.curframe_locals`` attribute is now a deprecated
937937
read-only property. The low overhead dynamic frame locals access added in
938938
Python 3.13 by PEP 667 means the frame locals cache reference previously
939939
stored in this attribute is no longer needed. Derived debuggers should access

Include/internal/pycore_object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ PyAPI_DATA(Py_ssize_t) _Py_RefTotal;
121121

122122
extern void _Py_AddRefTotal(PyThreadState *, Py_ssize_t);
123123
extern PyAPI_FUNC(void) _Py_IncRefTotal(PyThreadState *);
124-
extern void _Py_DecRefTotal(PyThreadState *);
124+
extern PyAPI_FUNC(void) _Py_DecRefTotal(PyThreadState *);
125125

126126
# define _Py_DEC_REFTOTAL(interp) \
127127
interp->object_state.reftotal--
@@ -710,7 +710,7 @@ _PyObject_SetMaybeWeakref(PyObject *op)
710710
}
711711
}
712712

713-
extern int _PyObject_ResurrectEndSlow(PyObject *op);
713+
extern PyAPI_FUNC(int) _PyObject_ResurrectEndSlow(PyObject *op);
714714
#endif
715715

716716
// Temporarily resurrects an object during deallocation. The refcount is set

Lib/asyncio/tasks.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,23 +245,23 @@ def uncancel(self):
245245
return self._num_cancels_requested
246246

247247
def __eager_start(self):
248-
prev_task = _swap_current_task(self._loop, self)
248+
prev_task = _py_swap_current_task(self._loop, self)
249249
try:
250-
_register_eager_task(self)
250+
_py_register_eager_task(self)
251251
try:
252252
self._context.run(self.__step_run_and_handle_result, None)
253253
finally:
254-
_unregister_eager_task(self)
254+
_py_unregister_eager_task(self)
255255
finally:
256256
try:
257-
curtask = _swap_current_task(self._loop, prev_task)
257+
curtask = _py_swap_current_task(self._loop, prev_task)
258258
assert curtask is self
259259
finally:
260260
if self.done():
261261
self._coro = None
262262
self = None # Needed to break cycles when an exception occurs.
263263
else:
264-
_register_task(self)
264+
_py_register_task(self)
265265

266266
def __step(self, exc=None):
267267
if self.done():
@@ -273,11 +273,11 @@ def __step(self, exc=None):
273273
self._must_cancel = False
274274
self._fut_waiter = None
275275

276-
_enter_task(self._loop, self)
276+
_py_enter_task(self._loop, self)
277277
try:
278278
self.__step_run_and_handle_result(exc)
279279
finally:
280-
_leave_task(self._loop, self)
280+
_py_leave_task(self._loop, self)
281281
self = None # Needed to break cycles when an exception occurs.
282282

283283
def __step_run_and_handle_result(self, exc):

Lib/ensurepip/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
__all__ = ["version", "bootstrap"]
13-
_PIP_VERSION = "24.3.1"
13+
_PIP_VERSION = "25.0.1"
1414

1515
# Directory of system wheel packages. Some Linux distribution packaging
1616
# policies recommend against bundling dependencies. For example, Fedora

0 commit comments

Comments
 (0)