Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-45292: [PEP-654] add except* #29581

Merged
merged 50 commits into from
Dec 14, 2021
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
b0ca0b7
bpo-45292: [PEP-654] add except*
iritkatriel Nov 11, 2021
cad9126
fold invalid_except_star_stmt into invalid_except_stmt. Add custom me…
iritkatriel Nov 17, 2021
798aaa7
Erlend's first review
iritkatriel Nov 17, 2021
f95272c
fix grammar rule for mixed except/except*
iritkatriel Nov 18, 2021
ca44878
fix doctest failure
iritkatriel Nov 18, 2021
adc834d
remove duplication in except* handling
iritkatriel Nov 19, 2021
e3fa2f7
fix bug - move POP_BLOCK to the end in case of except*
iritkatriel Nov 19, 2021
1908fd8
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Nov 21, 2021
5846329
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Nov 21, 2021
f9a626c
Use Py_NewRef(_PyLong_GetZero());
iritkatriel Nov 21, 2021
fdc948b
Split AST node Try -> Try/TryStar. Separate try-except and try-except…
iritkatriel Nov 22, 2021
488f9fa
Revert doctest changes (not needed with TryStar)
iritkatriel Nov 22, 2021
4eff693
a pesky little decref
iritkatriel Nov 22, 2021
211d6da
📜🤖 Added by blurb_it.
blurb-it[bot] Nov 22, 2021
03dbf43
update unparse for TryStar
iritkatriel Nov 22, 2021
704bc8f
update ast doc with TryStar
iritkatriel Nov 22, 2021
ff36e5d
add try-star test in test_grammar
iritkatriel Nov 22, 2021
73ee294
add test for invalid exception matcher (old except)
iritkatriel Nov 22, 2021
51e8178
break/ continue/return in except* block is SyntaxError
iritkatriel Nov 22, 2021
50a2126
add stack stability tests for except*
iritkatriel Nov 22, 2021
1d9969d
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Nov 22, 2021
4a7bf9f
remove commented out debug prints
iritkatriel Nov 23, 2021
3ad5d41
add trace tests for except*
iritkatriel Nov 24, 2021
2813363
remove obsolete comment
iritkatriel Nov 24, 2021
7e54805
formatting of comment
iritkatriel Nov 25, 2021
5736f15
save step before try
iritkatriel Nov 25, 2021
82a4db3
add diagram of stack contents durign except*
iritkatriel Nov 25, 2021
a461e7d
one more save step before try
iritkatriel Nov 25, 2021
be609b3
fix diagram
iritkatriel Nov 25, 2021
706e54b
fix diagram some more
iritkatriel Nov 25, 2021
7f49575
treat JUMP_IF_NOT_EG_MATCH like *_EXC_MATCH in mark_stacks
iritkatriel Nov 27, 2021
ae729f3
whatnew in 3.11
iritkatriel Nov 27, 2021
38e3b50
Merge branch 'main' into bpo-45292-except_star
ambv Nov 30, 2021
ee53c8d
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Dec 5, 2021
9c18862
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Dec 7, 2021
7428b15
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Dec 8, 2021
bbe44fb
fix typos in dis doc entry
iritkatriel Dec 8, 2021
22bf207
"three items" --> "3items"
iritkatriel Dec 8, 2021
66d830a
add spaces
iritkatriel Dec 8, 2021
f2b74a5
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Dec 10, 2021
035fe5c
Apply first batch of suggestions from code review
iritkatriel Dec 11, 2021
5d52de3
the remaining comments from Erlend
iritkatriel Dec 11, 2021
a1591f0
sign what's new
iritkatriel Dec 11, 2021
ce36211
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Dec 11, 2021
20d9ccd
'== -1' --> '< 0' for consistency. Added a missing recursion guard.
iritkatriel Dec 12, 2021
3a642e6
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Dec 12, 2021
13e0d0f
Merge branch 'main' into bpo-45292-except_star
iritkatriel Dec 13, 2021
078f050
whitespace
iritkatriel Dec 14, 2021
a91b219
Merge branch 'bpo-45292-except_star' of https://github.com/iritkatrie…
iritkatriel Dec 14, 2021
564b8a0
Merge remote-tracking branch 'upstream/main' into bpo-45292-except_star
iritkatriel Dec 14, 2021
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
4 changes: 2 additions & 2 deletions Doc/library/dis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,8 @@ All of the following opcodes use their arguments.
the exception group representing TOS1. Jumps if no match is found.

Pops one item from the stack. If a match was found, pops the 3 items representing
the exception and pushes the three items representing the non-matching part of
the exception group, followed by the three items representing the matching part.
the exception and pushes the 3items representing the non-matching part of
the exception group, followed by the 3items representing the matching part.
iritkatriel marked this conversation as resolved.
Show resolved Hide resolved
In other words, in case of a match it pops 4 items and pushes 6.

.. versionadded:: 3.11
Expand Down