I want 
>>BinaryInt(-2, 4)
0b1110
>>BinaryInt(-2, 4, True)
-0b010
>>BinaryInt(-0b010, 4)
0b1110
It should accept float values also.

Can anyone tell what should be the input and return types???
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/5HBNQHAEFCQMBVQIDE2K4KC3DMUU22JJ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to