Skip to content

bool: bitwise ops use real bitwise operators and check both operands (2 | True returned 2)#2728

Merged
PierreQuentel merged 1 commit into
brython-dev:masterfrom
fgallaire:bool-bitwise-ops
Jun 12, 2026
Merged

bool: bitwise ops use real bitwise operators and check both operands (2 | True returned 2)#2728
PierreQuentel merged 1 commit into
brython-dev:masterfrom
fgallaire:bool-bitwise-ops

Conversation

@fgallaire

Copy link
Copy Markdown
Contributor
>>> 2 | True
2  # before
>>> 2 | True
3  # after
>>> 2 & True
True  # before
>>> 2 & True
0     # after

@PierreQuentel PierreQuentel merged commit 0e7ac95 into brython-dev:master Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants