News for hackers. Stuff that matters.
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.
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.
Re:Python: Bitwise NOT and List by BrandonM on Friday March 28, 2008 @06:27AM (#148454)
I would hazard a guess that CPython (the reference implementation) hooks directly into C for bitwise NOT, and therefore, it would matter.