mirror of
https://github.com/python/cpython.git
synced 2025-11-03 07:01:21 +00:00
GH-106008: Make implicit boolean conversions explicit (GH-106003)
This commit is contained in:
parent
6e9f83d9ae
commit
7b2d94d875
20 changed files with 1728 additions and 1152 deletions
|
|
@ -18,6 +18,7 @@ def test_if_expression(self):
|
|||
expected = [
|
||||
('RESUME', 0, 0),
|
||||
('LOAD_CONST', 0, 1),
|
||||
('TO_BOOL', 0, 1),
|
||||
('POP_JUMP_IF_FALSE', false_lbl := self.Label(), 1),
|
||||
('LOAD_CONST', 1, 1),
|
||||
('JUMP', exit_lbl := self.Label()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue