The module should also support bit masking (left or right justified) with AND / OR / XOR / NotAND / NotOR / NotXOR operations. ieg following the same structure:
binary.AND(a,b) binary.OR(a,b) binary.XOR(a,b) binary.NOTAND(a,b) binary.NOTOR(a,b) binary.NOTXOR(a,b) The number of larger length of bits of a or b is used and the other padded with '0' or '1' Default could be: right justified and '0' padding on the left option1: left justified option2: padding with '1'
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/OOFCNEP63YTNG5E2KDZD2LZJLCAPDOIM/ Code of Conduct: http://python.org/psf/codeofconduct/
