John Machin wrote: > Scott David Daniels wrote: >> max wrote: >>> Larry Bates <[EMAIL PROTECTED]> wrote in >> The python equivalent: >> ... >> exec "def shl(x, y): return x * 2^y" > > Perhaps this should be: > exec "def shl(x, y): return x * 2 ** y" > or > exec "def shl(x, y): return x << y" Exactly. Demonstrating the problems of not actually running a test case with known results.
--Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list