Re:Python: Bitwise NOT and List
by nostrademons on Thursday March 27, 2008 @04:26PM
(#148042)
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.
[ Parent
| on HN ]
Re:Python: Bitwise NOT and List
by foonamefoo on Friday March 28, 2008 @12:04AM
(#148315)
That wouldn't matter since we are talking about python, not assembly or C.