Steve D'Aprano <steve+pyt...@pearwood.info> writes: > Again, assume both operands are in range for an N-bit signed integer. What's > a good way to efficiently, or at least not too inefficiently, do the > calculations in Python?
My first thought is towards the struct module, especially if you want to handle a bunch of such integers at the same time. Or maybe the array module or some combination. Or a C extension. -- https://mail.python.org/mailman/listinfo/python-list