GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge branch 'main' into gh-129515-ifexp-syntax-error · sergey-miryanov/cpython@63b4400

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • build.yml
    • tail-call.yml
  • Doc
    • c-api
      • typeobj.rst
    • library
      • traceback.rst
    • using
      • configure.rst
    • whatsnew
      • 3.14.rst
  • Grammar
    • python.gram
  • Include/internal
    • pycore_ceval.h
    • pycore_opcode_metadata.h
    • pycore_uop_metadata.h
  • Lib
    • _pydatetime.py
    • sysconfig
      • __init__.py
    • test
      • datetimetester.py
      • test_ast
        • test_ast.py
      • test_build_details.py
      • test_cmd_line_script.py
      • test_compile.py
      • test_exceptions.py
      • test_fstring.py
      • test_generated_cases.py
      • test_peepholer.py
      • test_string_literals.py
      • test_syntax.py
      • test_traceback.py
    • traceback.py
  • Makefile.pre.in
  • Misc/NEWS.d/next
    • Build
      • 2025-02-11-08-06-44.gh-issue-129819.7rn4dY.rst
      • 2025-02-12-19-51-19.gh-issue-130048.kHNkzP.rst
    • Core_and_Builtins
      • 2021-06-09-23-04-58.bpo-44369.R7QkFv.rst
      • 2025-02-10-11-30-13.gh-issue-129953.wipsl_.rst
      • 2025-02-11-22-20-21.gh-issue-129715.mopO8n.rst
      • 2025-02-13-00-28-43.gh-issue-116042.861juq.rst
      • 2025-02-13-02-39-42.gh-issue-107956.dLguDW.rst
    • Library
      • 2024-11-27-23-29-05.gh-issue-109798.OPj1CT.rst
      • 2025-01-26-19-35-06.gh-issue-96092.mMg3gL.rst
    • Tools-Demos
      • 2025-02-12-14-58-54.gh-issue-130025._-mp5K.rst
  • Modules
    • _asynciomodule.c
    • _datetimemodule.c
    • _testexternalinspection.c
  • Objects
    • object.c
    • obmalloc.c
  • Parser
    • parser.c
    • pegen_errors.c
    • string_parser.c
  • Python
    • ast_opt.c
    • bytecodes.c
    • ceval.c
    • ceval_macros.h
    • executor_cases.c.h
    • flowgraph.c
    • gc.c
    • gc_free_threading.c
    • generated_cases.c.h
    • instrumentation.c
    • optimizer.c
    • optimizer_cases.c.h
  • Tools
    • build
      • generate-build-details.py
    • cases_generator
      • analyzer.py
      • cwriter.py
      • generators_common.py
      • optimizer_generator.py
      • stack.py
  • configure.ac
  • configure
  • iOS/testbed
    • __main__.py
  • pyconfig.h.in

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ jobs:
621621
- build_wasi
622622
- build_windows
623623
- build_windows_msi
624+
- cross-build-linux
624625
- test_hypothesis
625626
- build_asan
626627
- build_tsan
Collapse file

‎.github/workflows/tail-call.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/tail-call.yml
+14-1Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- aarch64-apple-darwin/clang
4242
- x86_64-unknown-linux-gnu/gcc
4343
- aarch64-unknown-linux-gnu/gcc
44+
- free-threading
4445
llvm:
4546
- 19
4647
include:
@@ -65,6 +66,9 @@ jobs:
6566
- target: aarch64-unknown-linux-gnu/gcc
6667
architecture: aarch64
6768
runner: ubuntu-22.04-arm
69+
- target: free-threading
70+
architecture: x86_64
71+
runner: ubuntu-24.04
6872
steps:
6973
- uses: actions/checkout@v4
7074
with:
@@ -105,11 +109,20 @@ jobs:
105109
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
106110
107111
- name: Native Linux (release)
108-
if: runner.os == 'Linux'
112+
if: runner.os == 'Linux' && matrix.target != 'free-threading'
109113
run: |
110114
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
111115
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
112116
CC=clang-19 ./configure --with-tail-call-interp
113117
make all --jobs 4
114118
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
115119
120+
- name: Native Linux with free-threading (release)
121+
if: matrix.target == 'free-threading'
122+
run: |
123+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
124+
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
125+
CC=clang-19 ./configure --with-tail-call-interp --disable-gil
126+
make all --jobs 4
127+
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
128+
Collapse file

‎Doc/c-api/typeobj.rst‎

Copy file name to clipboardExpand all lines: Doc/c-api/typeobj.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
18301830
dictionary, so it is may be more efficient to call :c:func:`PyObject_GetAttr`
18311831
when accessing an attribute on the object.
18321832

1833-
It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_WEAKREF` bit and
1833+
It is an error to set both the :c:macro:`Py_TPFLAGS_MANAGED_DICT` bit and
18341834
:c:member:`~PyTypeObject.tp_dictoffset`.
18351835

18361836
**Inheritance:**
Collapse file

‎Doc/library/traceback.rst‎

Copy file name to clipboardExpand all lines: Doc/library/traceback.rst
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ Module-Level Functions
257257

258258
.. versionadded:: 3.5
259259

260+
.. versionchanged:: 3.14
261+
This function previously returned a generator that would walk the stack
262+
when first iterated over. The generator returned now is the state of the
263+
stack when ``walk_stack`` is called.
264+
260265
.. function:: walk_tb(tb)
261266

262267
Walk a traceback following :attr:`~traceback.tb_next` yielding the frame and
Collapse file

‎Doc/using/configure.rst‎

Copy file name to clipboardExpand all lines: Doc/using/configure.rst
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,9 @@ also be used to improve performance.
575575
.. versionchanged:: 3.12
576576
Use ThinLTO as the default optimization policy on Clang if the compiler accepts the flag.
577577

578+
.. versionchanged:: next
579+
Revert to using full LTO as the default optimization policy on Clang.
580+
578581
.. option:: --enable-bolt
579582

580583
Enable usage of the `BOLT post-link binary optimizer
Collapse file

‎Doc/whatsnew/3.14.rst‎

Copy file name to clipboardExpand all lines: Doc/whatsnew/3.14.rst
+16-1Lines changed: 16 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Improved error messages
165165
error message prints the received number of values in more cases than before.
166166
(Contributed by Tushar Sadhwani in :gh:`122239`.)
167167

168-
.. code-block:: pycon
168+
.. code-block:: python
169169
170170
>>> x, y, z = 1, 2, 3, 4
171171
Traceback (most recent call last):
@@ -196,6 +196,17 @@ Improved error messages
196196
SyntaxError: statement given where 'body' expression required
197197
198198
199+
* When incorrectly closed strings are detected, the error message suggests
200+
that the string may be intended to be part of the string. (Contributed by
201+
Pablo Galindo in :gh:`88535`.)
202+
203+
.. code-block:: python
204+
205+
>>> "The interesting object "The important object" is very important"
206+
Traceback (most recent call last):
207+
SyntaxError: invalid syntax. Is this intended to be part of the string?
208+
209+
199210
.. _whatsnew314-pep741:
200211

201212
PEP 741: Python Configuration C API
@@ -1289,6 +1300,10 @@ Build changes
12891300
* GNU Autoconf 2.72 is now required to generate :file:`configure`.
12901301
(Contributed by Erlend Aasland in :gh:`115765`.)
12911302

1303+
* CPython now uses Full LTO as the default link time optimization policy
1304+
on Clang. This reverts an earlier change in CPython 3.12.
1305+
(Contributed by Ken Jin in :gh:`130049`.)
1306+
12921307
.. _whatsnew314-pep761:
12931308

12941309
PEP 761: Discontinuation of PGP signatures
Collapse file

‎Grammar/python.gram‎

Copy file name to clipboardExpand all lines: Grammar/python.gram
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,9 @@ invalid_type_param:
11871187
}
11881188

11891189
invalid_expression:
1190+
| STRING a=(!STRING expression_without_invalid)+ STRING {
1191+
RAISE_SYNTAX_ERROR_KNOWN_RANGE( PyPegen_first_item(a, expr_ty), PyPegen_last_item(a, expr_ty),
1192+
"invalid syntax. Is this intended to be part of the string?") }
11901193
# !(NAME STRING) is not matched so we don't show this error with some invalid string prefixes like: kf"dsfsdf"
11911194
# Soft keywords need to also be ignored because they can be parsed as NAME NAME
11921195
| !(NAME STRING | SOFT_KEYWORD) a=disjunction b=expression_without_invalid {
Collapse file

‎Include/internal/pycore_ceval.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_ceval.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ PyAPI_FUNC(PyObject *) _PyEval_ImportName(PyThreadState *, _PyInterpreterFrame *
274274
PyAPI_FUNC(PyObject *)_PyEval_MatchClass(PyThreadState *tstate, PyObject *subject, PyObject *type, Py_ssize_t nargs, PyObject *kwargs);
275275
PyAPI_FUNC(PyObject *)_PyEval_MatchKeys(PyThreadState *tstate, PyObject *map, PyObject *keys);
276276
PyAPI_FUNC(void) _PyEval_MonitorRaise(PyThreadState *tstate, _PyInterpreterFrame *frame, _Py_CODEUNIT *instr);
277-
PyAPI_FUNC(int) _PyEval_UnpackIterableStackRef(PyThreadState *tstate, _PyStackRef v, int argcnt, int argcntafter, _PyStackRef *sp);
277+
PyAPI_FUNC(int) _PyEval_UnpackIterableStackRef(PyThreadState *tstate, PyObject *v, int argcnt, int argcntafter, _PyStackRef *sp);
278278
PyAPI_FUNC(void) _PyEval_FrameClearAndPop(PyThreadState *tstate, _PyInterpreterFrame *frame);
279279
PyAPI_FUNC(PyObject **) _PyObjectArray_FromStackRefArray(_PyStackRef *input, Py_ssize_t nargs, PyObject **scratch);
280280

Collapse file

‎Include/internal/pycore_opcode_metadata.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_opcode_metadata.h
+16-16Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.