[Python-ideas] Re: Add Binary module.

2020-02-17 Thread Rupert Spann
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 b

[Python-ideas] Re: Add Binary module.

2020-02-17 Thread Rupert Spann
The module should also support bit masking (left and/or right justified) with AND / OR / XOR / NotAND / NotOR / NotXOR operations. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org http

[Python-ideas] Dictionary Keys treated as Sets

2019-09-17 Thread Rupert Spann
related to: pep-0584, PEP-0218, and ??? The request is that since dictionary keys can not be duplicated / are unique that they may behave the same as sets - and have the set operators actions and return sets. eg.: aSet = set('a','b','c','bar') aDict = {'a':'aaa', 'b':'baa' , 'foo':fou' } bDict =