But there is a problem with (0b1101). 5==0b101 -5==-0b101
but we want output -5==1011. so this is not possible by using integers with base designator "0b". so we have to use new Python type that represents a "binary number",which accepts number of bits,sign of number. _______________________________________________ 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/NXGSX5JJRNZYA3EN3H5PRS3WKI276T6B/ Code of Conduct: http://python.org/psf/codeofconduct/
