2 ms·
I believe this'll only work on machines that use 2s-complement arithmetic, which is basically all of them. Just saying...it's theoretically possible to have nu
by nostrademons 19y ago
I believe this'll only work on machines that use 2s-complement arithmetic, which is basically all of them. Just saying...it's theoretically possible to have number representations where ~0 != -1.
- deleted 19y ago[deleted]
- foonamefoo 19y agoThat wouldn't matter since we are talking about python, not assembly or C.
- BrandonM 19y agoI would hazard a guess that CPython (the reference implementation) hooks directly into C for bitwise NOT, and therefore, it would matter.