Skip to content

Reformat news items into single paragraphs. #18143

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Split the COMPARE_OP bytecode instruction into four distinct instructions.

* COMPARE_OP for rich comparisons
* IS_OP for 'is' and 'is not' tests
* CONTAINS_OP for 'in' and 'is not' tests
* JUMP_IF_NOT_EXC_MATCH for checking exceptions in 'try-except' statements.

``COMPARE_OP`` now handles only rich comparisons.
``IS_OP`` does 'is' and 'is not' tests.
``CONTAINS_OP`` does 'in' and 'is not' tests.
``JUMP_IF_NOT_EXC_MATCH`` is for checking exceptions in 'try-except' statements.
This improves the clarity of the interpreter and should provide a modest
speedup.
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
Replace four complex bytecodes for building sequences with three simpler ones.


The following four bytecodes have been removed:

* BUILD_LIST_UNPACK
* BUILD_TUPLE_UNPACK
* BUILD_SET_UNPACK
* BUILD_TUPLE_UNPACK_WITH_CALL

The following three bytecodes have been added:

* LIST_TO_TUPLE
* LIST_EXTEND
* SET_UPDATE
Four bytecodes have been removed: ``BUILD_LIST_UNPACK``, ``BUILD_TUPLE_UNPACK``, ``BUILD_SET_UNPACK`` and ``BUILD_TUPLE_UNPACK_WITH_CALL``.
Three bytecodes have been added: ``LIST_TO_TUPLE``, ``LIST_EXTEND``, ``SET_UPDATE``.