Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-129858: Special syntax error forelif block afterelse#129902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pablogsal merged 12 commits intopython:mainfromswfarnsworth:elif-error-message
Apr 25, 2025
Merged
Changes from1 commit
Commits
Show all changes
12 commits
Select commitHold shift + click to select a range
883ada9
Special syntax error for `elif` block after `else`
swfarnsworthFeb 8, 2025
fe17ada
Change elif-after-else error wording to mirror patma errors
swfarnsworthFeb 12, 2025
345964a
Test for special syntax error for elif following else
swfarnsworthFeb 12, 2025
bf777a2
📜🤖 Added by blurb_it.
blurb-it[bot]Feb 12, 2025
49b41b7
gh-129902: move code example from blurb_it to whatsnew rst.
swfarnsworthFeb 13, 2025
e1333c1
Merge branch 'main' into elif-error-message
hugovkFeb 13, 2025
116d785
Update Misc/NEWS.d/next/Core_and_Builtins/2025-02-12-01-36-13.gh-issu…
swfarnsworthFeb 14, 2025
dee5f1e
Update Doc/whatsnew/3.14.rst
swfarnsworthFeb 14, 2025
090f7e1
Merge branch 'main' into elif-error-message
swfarnsworthFeb 14, 2025
ab2224c
\`\`elif\`\` -> :keyword:\`elif\`
swfarnsworthFeb 15, 2025
6ca3def
Overwrite parser.c with current main; this version of the parser does…
swfarnsworthApr 19, 2025
384c876
Recompile parser with updated elif-after-else error message
swfarnsworthApr 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
\\elif\\ -> :keyword:\elif\
  • Loading branch information
@swfarnsworth
swfarnsworth authoredFeb 15, 2025
commitab2224cfe06e2c058dd8c9991d4f27559d20359a
3 changes: 1 addition & 2 deletionsDoc/whatsnew/3.14.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -174,7 +174,7 @@ Improved error messages
^^^^^^^
ValueError: too many values to unpack (expected 3, got 4)

*``elif`` statements that follow an``else`` block now have a specific error message.
*:keyword:`elif` statements that follow an:keyword:`else` block now have a specific error message.
(Contributed by Steele Farnsworth in :gh:`129902`.)

.. code-block:: pycon
Expand All@@ -190,7 +190,6 @@ Improved error messages
^^^^
SyntaxError: 'elif' block follows an 'else' block


* When incorrectly closed strings are detected, the error message suggests
that the string may be intended to be part of the string. (Contributed by
Pablo Galindo in :gh:`88535`.)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp