[Tutor] Preference to Bitwise operators in comparison to Logical operators
boB Stepp
robertvstepp at gmail.com
Thu Sep 10 20:47:44 EDT 2020
On Thu, Sep 10, 2020 at 11:14:22PM +0100, Alan Gauld via Tutor wrote:
>On 10/09/2020 18:51, Manprit Singh wrote:
>Bitwise operations are for twiddling bits. They work great with
>the bitmasks returned by some hardware and OS interfaces. Or
>in dealing with data read from files or networks originating
>on different hardware (eg. uncommon encodings etc)
Your mention of bitmasks brought to mind the curses module. These are
used in curses for setting properties. Are there any practical uses of
"bit twiddling" in the context of curses?
--
Wishing you only the best,
boB Stepp
More information about the Tutor
mailing list