On Tue, Nov 23, 2010 at 10:29, R. Alan Monroe <[email protected]> wrote: >> I've always disliked using "if not n % 2" to test for even/odd ints >> because of its convoluted logic. But I ran some speed tests and found >> it was the way to go over "if n % 2 == 0". > > Did you try bitwise-and with 1?
What's that? Dick _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
