Re:The unknown features of Python's `operator` module
by klyrs on Sunday August 08, 2021 @08:27PM
(#28111513)
What I meant by parity was 'evenness' -- but the ultimate purpose was to explain the utility of the xor function provided by the operator module.
But, the more useful concept is parity for error detection, which my example clearly fails at.
I'm guessing the last one since that's what fits your LSB comment(when using 'evenness' not 'oddness'). But in that case I'm not sure your example is doing, my python might be too rusty but is it something like: get the unicode representation(int) of each character in a string, xor the results and get the LSB?