Skip to content

Commit 878e320

Browse files
Merge remote-tracking branch 'upstream/main' into pr/142759
2 parents bee7841 + 0ac4e6c commit 878e320

31 files changed

+3485
-3527
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ Summary -- Release highlights
7474
* :pep:`782`: :ref:`A new PyBytesWriter C API to create a Python bytes object
7575
<whatsnew315-pep782>`
7676
* :ref:`Improved error messages <whatsnew315-improved-error-messages>`
77-
* :ref:`__pycache__ directories now contain a .gitignore file
78-
<whatsnew315-pycache-gitignore>`
7977

8078

8179
New features
@@ -399,12 +397,6 @@ Other language changes
399397
for any class.
400398
(Contributed by Serhiy Storchaka in :gh:`41779`.)
401399

402-
.. _whatsnew315-pycache-gitignore:
403-
404-
* :file:`__pycache__` directories now contain a :file:`.gitignore` file for Git
405-
that ignores their contents.
406-
(Contributed by Stan Ulbrych in :gh:`141081`.)
407-
408400

409401
New modules
410402
===========

Include/internal/pycore_ceval.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,6 @@ _Py_eval_breaker_bit_is_set(PyThreadState *tstate, uintptr_t bit)
377377
void _Py_set_eval_breaker_bit_all(PyInterpreterState *interp, uintptr_t bit);
378378
void _Py_unset_eval_breaker_bit_all(PyInterpreterState *interp, uintptr_t bit);
379379

380-
PyAPI_FUNC(_PyStackRef) _PyFloat_FromDouble_ConsumeInputs(_PyStackRef left, _PyStackRef right, double value);
381-
382380
#ifndef Py_SUPPORTS_REMOTE_DEBUG
383381
#if defined(__APPLE__)
384382
#include <TargetConditionals.h>

Include/internal/pycore_object.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,9 @@ static inline void Py_DECREF_MORTAL_SPECIALIZED(PyObject *op, destructor destruc
496496
#define Py_DECREF_MORTAL_SPECIALIZED(op, destruct) Py_DECREF_MORTAL_SPECIALIZED(_PyObject_CAST(op), destruct)
497497

498498
#endif
499+
#else // Py_GIL_DISABLED
500+
# define Py_DECREF_MORTAL(op) Py_DECREF(op)
501+
# define Py_DECREF_MORTAL_SPECIALIZED(op, destruct) Py_DECREF(op)
499502
#endif
500503

501504
/* Inline functions trading binary compatibility for speed:
@@ -1045,6 +1048,8 @@ static inline Py_ALWAYS_INLINE void _Py_INCREF_MORTAL(PyObject *op)
10451048
}
10461049
#endif
10471050
}
1051+
#else
1052+
# define _Py_INCREF_MORTAL(op) Py_INCREF(op)
10481053
#endif
10491054

10501055
/* Utility for the tp_traverse slot of mutable heap types that have no other

Include/internal/pycore_opcode_metadata.h

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

0 commit comments

Comments
 (0)