[$] The troubles with Boolean inversion in Python
The Python bitwise-inversion (or complement) operator, "~", behaves pretty much as expected when it is applied to integers—it toggles every bit, from one to zero and vice versa. I [...]
[$] The troubles with Boolean inversion in Python
The Python bitwise-inversion (or complement) operator, "~", behaves pretty much as expected when it is applied to integers—it toggles every bit, from one to zero and vice versa. I [...]
If you have a fediverse account, you can quote this note from your own instance. Search https://fedi.lwn.net/users/lwn/statuses/116143507826861537 on your instance and quote it. (Note that quoting is not supported in Mastodon.)