[issue39644] Add Binary module.

2020-02-16 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue39644] Add Binary module.

2020-02-16 Thread Mark Dickinson
Mark Dickinson added the comment: I'm going to close this, for two reasons: - It's not well-formed enough for a b.p.o. issue: there are too many details to be worked out and questions to be answered. As it stands, there's nothing actionable here. - Adding a new module to the Python std. lib

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: I think this is not present in python. This module should contain operations that can be performed on binary numbers. In the below examples a and b are binary numbers. binary.add(a,b) binary.sub(a,b) binary.mul(a,b) binary.div(a,b) binary.ones_complement(a)

[issue39644] Add Binary module.

2020-02-16 Thread SilentGhost
SilentGhost added the comment: >>> 0b1110 + 0b1010 24 >>> bin(0b1110 + 0b1010) '0b11000' Can you explain how this is not enough? -- ___ Python tracker ___ ___

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: I meant a module for "binary number". It can do operations on binary number. -- ___ Python tracker ___ _

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Change by Ananthakrishnan : -- components: +Library (Lib) -C API ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue39644] Add Binary module.

2020-02-16 Thread SilentGhost
SilentGhost added the comment: Ananthakrishnan, you've marked this issue as belonging to C API component, why? Besides, all this functionality is already present in python, what is it you're actually interested in? What is not covered by the independent packages on pypi? -- nosy: +Si

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: It operates only on 0 and 1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue39644] Add Binary module.

2020-02-16 Thread Ananthakrishnan
Ananthakrishnan added the comment: It is "addition". I meant binary addition: 1110+1010=11000. -1000=0111 -- ___ Python tracker ___ __

[issue39644] Add Binary module.

2020-02-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is binary addition, how it differs from just addition, what type of objects it operates? -- ___ Python tracker ___ __

[issue39644] Add Binary module.

2020-02-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: For binary addition and subtraction is it any different from https://docs.python.org/3/library/operator.html . Is there a PyPI package that implements these ideas to see how useful it already is? -- nosy: +xtreak __

[issue39644] Add Binary module.

2020-02-15 Thread SilentGhost
Change by SilentGhost : -- nosy: +Ananthakrishnan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue39644] Add Binary module.

2020-02-15 Thread Ananthakrishnan
Change by Ananthakrishnan : -- nosy: +mark.dickinson, serhiy.storchaka, tim.peters -Ananthakrishnan ___ Python tracker ___ ___ Pytho

[issue39644] Add Binary module.

2020-02-15 Thread Ananthakrishnan
New submission from Ananthakrishnan : Add binary module that has binary operations like: binary addition. binary subtracion. binary multiplication. binary division. compliment. 1's complement. 2's complement. cconverting to various number system. converting to BCD. converting to grey code. K-Ma