Mark Dickinson <dicki...@gmail.com> added the comment: I think Greg's patch looks fine, modulo updating it to apply cleanly to py3k.
I couldn't resist tinkering a bit, though: factoring out the complement operations (for a, b and z) into a separate function gives (IMO) cleaner and more direct code that's free of mask operations. Here's the patch. ---------- Added file: http://bugs.python.org/file15195/long_bitwise_ops_metd.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1087418> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com